mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-27 11:05:46 +03:00
Remove more pathkey stuff.
This commit is contained in:
parent
12b36d964f
commit
8c4990551c
@ -376,7 +376,6 @@ main =
|
||||
, toJsPort = Pages.internals.toJsPort
|
||||
, fromJsPort = Pages.internals.fromJsPort
|
||||
, generateFiles = Site.config.generateFiles
|
||||
, pathKey = ()
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -105,7 +105,6 @@ type alias Config userMsg userModel route siteStaticData =
|
||||
)
|
||||
)
|
||||
, canonicalSiteUrl : String
|
||||
, pathKey : ()
|
||||
, onPageChange :
|
||||
Maybe
|
||||
({ path : PagePath
|
||||
|
Loading…
Reference in New Issue
Block a user