mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-28 22:37:08 +03:00
Update pokedex example for latest file structure with app/ folder.
This commit is contained in:
parent
f5a3d6f897
commit
094e905dd5
@ -29,7 +29,7 @@ routes getStaticRoutes htmlToString =
|
||||
, greet
|
||||
, fileLength
|
||||
, jsonError
|
||||
, manifest |> Manifest.generator Site.canonicalUrl
|
||||
, DataSource.succeed manifest |> Manifest.generator Site.canonicalUrl
|
||||
]
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
module Site exposing (canonicalUrl, config)
|
||||
|
||||
import DataSource
|
||||
import DataSource exposing (DataSource)
|
||||
import Head
|
||||
import Pages.Manifest as Manifest
|
||||
import Route exposing (Route)
|
||||
import SiteConfig exposing (SiteConfig)
|
||||
import Sitemap
|
||||
@ -12,10 +11,9 @@ type alias Data =
|
||||
()
|
||||
|
||||
|
||||
config : SiteConfig Data
|
||||
config : SiteConfig
|
||||
config =
|
||||
{ data = data
|
||||
, canonicalUrl = canonicalUrl
|
||||
{ canonicalUrl = canonicalUrl
|
||||
, head = head
|
||||
}
|
||||
|
||||
@ -25,15 +23,11 @@ canonicalUrl =
|
||||
"https://elm-pages.com"
|
||||
|
||||
|
||||
data : DataSource.DataSource Data
|
||||
data =
|
||||
DataSource.succeed ()
|
||||
|
||||
|
||||
head : Data -> List Head.Tag
|
||||
head static =
|
||||
head : DataSource (List Head.Tag)
|
||||
head =
|
||||
[ Head.sitemapLink "/sitemap.xml"
|
||||
]
|
||||
|> DataSource.succeed
|
||||
|
||||
|
||||
siteMap :
|
@ -2,6 +2,7 @@
|
||||
"type": "application",
|
||||
"source-directories": [
|
||||
"src",
|
||||
"app",
|
||||
"../../src",
|
||||
".elm-pages",
|
||||
"../../plugins",
|
||||
|
Loading…
Reference in New Issue
Block a user