This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-01
Channels
- # adventofcode (66)
- # announcements (12)
- # aws (8)
- # babashka (28)
- # beginners (160)
- # cider (28)
- # clara (22)
- # clj-kondo (5)
- # cljdoc (40)
- # clojure (129)
- # clojure-australia (2)
- # clojure-europe (24)
- # clojure-gamedev (19)
- # clojure-nl (5)
- # clojure-norway (15)
- # clojure-sanfrancisco (25)
- # clojure-seattle (2)
- # clojure-spec (13)
- # clojure-uk (29)
- # clojurescript (14)
- # cryogen (5)
- # cursive (7)
- # data-science (1)
- # datascript (5)
- # datomic (8)
- # deps-new (5)
- # emacs (19)
- # events (8)
- # fulcro (32)
- # graalvm (7)
- # helix (9)
- # kaocha (3)
- # lambdaisland (1)
- # london-clojurians (4)
- # malli (5)
- # meander (32)
- # off-topic (143)
- # pathom (4)
- # portal (32)
- # re-frame (7)
- # reagent (33)
- # reitit (2)
- # shadow-cljs (5)
- # spacemacs (4)
- # tools-deps (30)
- # vim (1)
hello, i am trying to display the title for all of my website pages: tried:
{% for page in pages %}
<li>{{page.title}}</li>
{% endfor %}
but it won't work.
It worked only with navbar-pages
instead of pages
but home-page is missing in this case. Is there any way to do it ? Thanks✅ 3
Where do you want to do this?
According to https://github.com/cryogen-project/cryogen-core/blob/master/src/cryogen_core/compiler.clj#L646 pages are always in the scope but depending on what you are rendering you might perhaps be looking at a subset...
Sorry, wrong, actually you need to look at https://github.com/cryogen-project/cryogen-core/blob/master/src/cryogen_core/compiler.clj#L629 which shows that pages is not included. The former link shows you can use a custom extend-params-fn to ameliorate it
ok, thank you