Thanks Roberto, somehow I did not clue in that I could add arbitrary
metadata! Thanks for the example. That works well.
On Tuesday, 27 March 2018 05:17:43 UTC-6, Roberto Alsina wrote:
>
> To add arbitrary metadata to a post just do it.
>
> For example, if you are using nikola style metadata tha
To add arbitrary metadata to a post just do it.
For example, if you are using nikola style metadata that looks like
.. title: foo
You can add your own called frobnozz by adding a line such as
.. frobnozz: whatever
As for how to use it in the template: in all places where it makes sense
you wil
I see how I can use tags or something similar to set metadata, but do not
see how I can set arbitrary or custom pieces of metadata without creating
plugin. Also, the `pagekind` variable seems like exactly what I need, but
I could not find a way of setting it. In the meantime I found that I cou
It is not clear to me from the Nikola documentation how to add arbitrary
meta-data to a post nor how to then access that from a template. (I do see
how I could abuse current metadata - asking the user to specify a tag for
example - but the existing `pagekind` metadata seems like exactly what I
If you want your templates to make decisions based on post/page metadata,
just use whatever metadata you want, and ask the users to provide it :-)
On Mon, Mar 26, 2018 at 1:05 AM Michael Forbes
wrote:
> I noticed in the documentation that one can check `pagekind` in themes.
> How does one set th
I noticed in the documentation that one can check `pagekind` in themes.
How does one set this for a particular page (in particular, I am trying to
set `front_page` for my main index page.) I am using RST pages, and tried
things like adding `.. pagekind: front_page` as part of the header but no