Re: [nikola-discuss] How to set `pagekind`?

2018-04-03 Thread Michael Forbes
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

Re: [nikola-discuss] How to set `pagekind`?

2018-03-27 Thread Roberto Alsina
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

Re: [nikola-discuss] How to set `pagekind`?

2018-03-27 Thread Michael Forbes
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

Re: [nikola-discuss] How to set `pagekind`?

2018-03-27 Thread Michael Forbes
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

Re: [nikola-discuss] How to set `pagekind`?

2018-03-26 Thread Roberto Alsina
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

[nikola-discuss] How to set `pagekind`?

2018-03-25 Thread Michael Forbes
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