Update examples and tests.

This commit is contained in:
Dillon Kearns 2021-08-01 10:25:38 -07:00
parent c1fb9c3436
commit bbe33d4b52
5 changed files with 26 additions and 31 deletions

View File

@ -12,12 +12,11 @@ import SiteConfig exposing (SiteConfig)
config : SiteConfig Data
config =
\routes ->
{ data = data
, canonicalUrl = canonicalUrl
, manifest = manifest
, head = head
}
{ data = data
, canonicalUrl = canonicalUrl
, manifest = manifest
, head = head
}
type alias Data =

View File

@ -12,12 +12,11 @@ import SiteConfig exposing (SiteConfig)
config : SiteConfig Data
config =
\routes ->
{ data = data
, canonicalUrl = canonicalUrl
, manifest = manifest
, head = head
}
{ data = data
, canonicalUrl = canonicalUrl
, manifest = manifest
, head = head
}
type alias Data =

View File

@ -16,7 +16,7 @@
}
},
"../..": {
"version": "1.5.5",
"version": "2.0.1",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {

View File

@ -12,12 +12,11 @@ import SiteConfig exposing (SiteConfig)
config : SiteConfig Data
config =
\routes ->
{ data = data
, canonicalUrl = canonicalUrl
, manifest = manifest
, head = head
}
{ data = data
, canonicalUrl = canonicalUrl
, manifest = manifest
, head = head
}
type alias Data =

View File

@ -1044,12 +1044,11 @@ startLowLevel apiRoutes staticHttpCache pages =
Nothing ->
Debug.todo <| "Couldn't find page: " ++ pageRoute ++ "\npages: " ++ Debug.toString pages
, site =
\_ ->
{ data = DataSource.succeed ()
, canonicalUrl = "canonical-site-url"
, manifest = \_ -> manifest
, head = \_ -> []
}
{ data = DataSource.succeed ()
, canonicalUrl = "canonical-site-url"
, manifest = \_ -> manifest
, head = \_ -> []
}
, view =
\page _ ->
let
@ -1197,12 +1196,11 @@ startWithRoutes pageToLoad staticRoutes staticHttpCache pages =
Nothing ->
DataSource.fail <| "Couldn't find page: " ++ pageRoute ++ "\npages: " ++ Debug.toString pages
, site =
\_ ->
{ data = DataSource.succeed ()
, canonicalUrl = "canonical-site-url"
, manifest = \_ -> manifest
, head = \_ -> []
}
{ data = DataSource.succeed ()
, canonicalUrl = "canonical-site-url"
, manifest = \_ -> manifest
, head = \_ -> []
}
, view =
\page _ ->
let