Update pokedex example for latest file structure with app/ folder.

This commit is contained in:
Dillon Kearns 2022-02-16 16:54:52 -08:00
parent f5a3d6f897
commit 094e905dd5
20 changed files with 8 additions and 13 deletions

View File

@ -29,7 +29,7 @@ routes getStaticRoutes htmlToString =
, greet
, fileLength
, jsonError
, manifest |> Manifest.generator Site.canonicalUrl
, DataSource.succeed manifest |> Manifest.generator Site.canonicalUrl
]

View File

@ -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 :

View File

@ -2,6 +2,7 @@
"type": "application",
"source-directories": [
"src",
"app",
"../../src",
".elm-pages",
"../../plugins",