Remove more pathkey stuff.

This commit is contained in:
Dillon Kearns 2021-04-10 10:35:37 -07:00
parent 12b36d964f
commit 8c4990551c
3 changed files with 2 additions and 6 deletions

View File

@ -376,7 +376,6 @@ main =
, toJsPort = Pages.internals.toJsPort
, fromJsPort = Pages.internals.fromJsPort
, generateFiles = Site.config.generateFiles
, pathKey = ()
}

View File

@ -621,7 +621,6 @@ application :
)
)
, canonicalSiteUrl : String
, pathKey : pathKey
, onPageChange :
Maybe
({ path : PagePath
@ -638,7 +637,7 @@ application config =
Browser.application
{ init =
\flags url key ->
init config.urlToRoute config.pathKey config.init flags url key
init config.urlToRoute () config.init flags url key
|> Tuple.mapFirst Model
|> Tuple.mapSecond (Cmd.map AppMsg)
, view =
@ -689,7 +688,7 @@ application config =
{ currentUrl = model.url, baseUrl = model.baseUrl }
maybePagePath =
case ContentCache.lookupMetadata config.pathKey model.contentCache urls of
case ContentCache.lookupMetadata () model.contentCache urls of
Just pagePath ->
Just pagePath
@ -775,7 +774,6 @@ cliApplication :
)
)
, canonicalSiteUrl : String
, pathKey : ()
, onPageChange :
Maybe
({ path : PagePath

View File

@ -105,7 +105,6 @@ type alias Config userMsg userModel route siteStaticData =
)
)
, canonicalSiteUrl : String
, pathKey : ()
, onPageChange :
Maybe
({ path : PagePath