Skip to content

Commit

Permalink
Merge pull request #484 from geeksforsocialchange/add-viewport-meta-tag
Browse files Browse the repository at this point in the history
fix: Enable responsive UI on mobile devices
  • Loading branch information
kimadactyl authored Dec 19, 2024
2 parents 00a15d8 + 813b82b commit edf6fda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Theme/PageTemplate.elm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ stringToHeaderType maybeTypeString =

pageMetaTags : { title : Key, description : Key, imageSrc : Maybe String } -> List Head.Tag
pageMetaTags { title, description, imageSrc } =
Seo.summary
Head.metaName "viewport" (Head.raw "width=device-width, initial-scale=1") ::
(
Seo.summary
{ canonicalUrlOverride = Nothing
, siteName = t SiteTitle
, image =
Expand All @@ -93,6 +95,7 @@ pageMetaTags { title, description, imageSrc } =
, title = t (PageMetaTitle (t title))
}
|> Seo.website
)


view : PageUsingTemplate msg -> Html.Html msg
Expand Down

0 comments on commit edf6fda

Please sign in to comment.