made sidebar-pages flat again.
There is no way to ensure a sidebar-only hierarchy without tree gaps. So filtering a flat sequence would work much better.
This commit is contained in:
parent
b781b8b9bb
commit
a7f5f3a7b1
1 changed files with 3 additions and 4 deletions
|
@ -514,10 +514,7 @@
|
||||||
(= page-model :flat) navbar-pages
|
(= page-model :flat) navbar-pages
|
||||||
(= page-model :hierarchic) (hierarchic/build-hierarchic-map navbar-pages)
|
(= page-model :hierarchic) (hierarchic/build-hierarchic-map navbar-pages)
|
||||||
)
|
)
|
||||||
:sidebar-pages (cond
|
:sidebar-pages sidebar-pages
|
||||||
(= page-model :flat) sidebar-pages
|
|
||||||
(= page-model :hierarchic) (hierarchic/build-hierarchic-map sidebar-pages)
|
|
||||||
)
|
|
||||||
:home-page (if home-page
|
:home-page (if home-page
|
||||||
home-page
|
home-page
|
||||||
(assoc (first latest-posts) :layout "home.html"))
|
(assoc (first latest-posts) :layout "home.html"))
|
||||||
|
@ -533,6 +530,8 @@
|
||||||
(println "\t-->" (cyan (-> params :navbar-pages)))
|
(println "\t-->" (cyan (-> params :navbar-pages)))
|
||||||
(println (blue "debug: sidebar-pages:"))
|
(println (blue "debug: sidebar-pages:"))
|
||||||
(println "\t-->" (cyan (-> params :sidebar-pages)))
|
(println "\t-->" (cyan (-> params :sidebar-pages)))
|
||||||
|
(println (blue "debug: home-page:"))
|
||||||
|
(println "\t-->" (cyan (-> params :home-page)))
|
||||||
)
|
)
|
||||||
(set-custom-resource-path! (str "file:resources/templates/themes/" theme))
|
(set-custom-resource-path! (str "file:resources/templates/themes/" theme))
|
||||||
(cryogen-io/wipe-public-folder keep-files)
|
(cryogen-io/wipe-public-folder keep-files)
|
||||||
|
|
Loading…
Reference in a new issue