module Site exposing (canonicalUrl, config) import BackendTask exposing (BackendTask) import Cloudinary import FatalError exposing (FatalError) import Head import MimeType import Pages.Url import SiteConfig exposing (SiteConfig) config : SiteConfig config = { canonicalUrl = canonicalUrl , head = head } head : BackendTask FatalError (List Head.Tag) head = [ Head.metaName "viewport" (Head.raw "width=device-width,initial-scale=1") , Head.metaName "mobile-web-app-capable" (Head.raw "yes") , Head.metaName "theme-color" (Head.raw "#ffffff") , Head.metaName "apple-mobile-web-app-capable" (Head.raw "yes") , Head.metaName "apple-mobile-web-app-status-bar-style" (Head.raw "black-translucent") , Head.icon [ ( 32, 32 ) ] MimeType.Png (cloudinaryIcon MimeType.Png 32) , Head.icon [ ( 16, 16 ) ] MimeType.Png (cloudinaryIcon MimeType.Png 16) , Head.appleTouchIcon (Just 180) (cloudinaryIcon MimeType.Png 180) , Head.appleTouchIcon (Just 192) (cloudinaryIcon MimeType.Png 192) ] |> BackendTask.succeed canonicalUrl : String canonicalUrl = "https://elm-pages.com" cloudinaryIcon : MimeType.MimeImage -> Int -> Pages.Url.Url cloudinaryIcon mimeType width = Cloudinary.urlSquare "v1603234028/elm-pages/elm-pages-icon" (Just mimeType) width