GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.32k stars 416 forks source link

Add Support for Post Config work in Index or Tags Pages #252

Closed Fluxtheme closed 5 years ago

Fluxtheme commented 5 years ago

I am a big fan of Publii CMS, but does the publii team have plans to add support for @config.post.* to work outside a single post, as in index or tags pages. Like .Site.Params function on Hugo Generator.

Thanks for this great product.

dziudek commented 5 years ago

Hi,

It is impossible, because @config.post.* is different for every post. So it cannot be used on pages where there are more than one post. But you can try to use field postViewConfig of the post items. More details here: https://getpublii.com/dev/post-tags/