cryogen

http://cryogenweb.org/ - static sites by @U0DJK1VH6 & Co.
Andrei Stan 2020-12-01T13:25:54.215100Z

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

✅ 1
Jakub Holý 2020-12-01T15:01:44.215200Z

Where do you want to do this?

Jakub Holý 2020-12-01T15:03:50.215400Z

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...

Jakub Holý 2020-12-01T15:06:14.215700Z

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