elm-pages-v3-beta/examples/end-to-end/app/Site.elm
2022-02-25 10:04:19 -08:00

36 lines
634 B
Elm

module Site exposing (config)
import DataSource exposing (DataSource)
import Head
import Pages.Manifest as Manifest
import Route
import SiteConfig exposing (SiteConfig)
type alias Data =
()
config : SiteConfig
config =
{ canonicalUrl = "https://elm-pages.com"
, head = head
}
head : DataSource (List Head.Tag)
head =
[ Head.sitemapLink "/sitemap.xml"
]
|> DataSource.succeed
manifest : Data -> Manifest.Config
manifest static =
Manifest.init
{ name = "Site Name"
, description = "Description"
, startUrl = Route.Index |> Route.toPath
, icons = []
}