elm-pages-v3-beta/examples/docs/src/Site.elm

60 lines
1.3 KiB
Elm
Raw Normal View History

2020-09-13 17:19:09 +03:00
module Site exposing (canonicalUrl, config, tagline)
2020-05-24 01:31:56 +03:00
2020-05-24 03:03:28 +03:00
import Color
import Pages exposing (images, pages)
import Pages.Manifest as Manifest
import Pages.Manifest.Category
import Pages.PagePath exposing (PagePath)
import Pages.StaticHttp as StaticHttp
import TemplateType exposing (TemplateType)
2020-05-24 03:03:28 +03:00
2020-05-24 01:31:56 +03:00
2020-09-13 17:19:09 +03:00
type alias SiteConfig =
{ canonicalUrl : String
, manifest : Manifest.Config Pages.PathKey
}
config : SiteConfig
config =
{ canonicalUrl = canonicalUrl
, manifest = manifest
}
type alias StaticData =
()
staticData :
List ( PagePath Pages.PathKey, TemplateType )
-> StaticHttp.Request StaticData
staticData siteMetadata =
StaticHttp.succeed ()
2020-05-24 01:31:56 +03:00
canonicalUrl : String
canonicalUrl =
"https://elm-pages.com"
2020-05-24 03:03:28 +03:00
manifest : Manifest.Config Pages.PathKey
manifest =
{ backgroundColor = Just Color.white
, categories = [ Pages.Manifest.Category.education ]
, displayMode = Manifest.Standalone
, orientation = Manifest.Portrait
2020-09-13 17:19:09 +03:00
, description = tagline
2020-05-24 03:03:28 +03:00
, iarcRatingId = Nothing
, name = "elm-pages docs"
, themeColor = Just Color.white
, startUrl = pages.index
, shortName = Just "elm-pages"
, sourceIcon = images.iconPng
}
2020-05-24 18:36:40 +03:00
tagline : String
tagline =
"A statically typed site generator - elm-pages"