elm-pages-v3-beta/examples/end-to-end/app/Site.elm

36 lines
634 B
Elm
Raw Normal View History

2022-02-25 21:04:19 +03:00
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 = []
}