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 ? ThanksWhere 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