[nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-01 Thread Steve
Hi all, I'm sure I overlooked something basic - how can I output a metadata variable from my document via reStructuredText?I've read extensively about these values but cannot find how to use one in a post or file. None of the tests below work to render the value assigned to the slug.

Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-02 Thread Steve
: slug But I want to output the value of *slug*. In shell it would be the simple difference of echo $slug vs echo slug. On Fri, May 1, 2020 at 4:13 PM Chris Warrick wrote: > On Fri, 1 May 2020 at 22:11, Steve wrote: > > > > Hi all, > > > > I'm sure I overl

Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-04 Thread Steve
Why does "title" work but not "slug"? {{% template %}} The title is: ${post.slug()} {{% /template %}} ... rejected -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it,

Re: [nikola-discuss] How to reference a metadata value in reStructuredText?

2020-05-04 Thread Steve
s I could parse the slug value out of the header via awk in order to output it. Convoluted but it could work if I can get a reference to the filename being processed. On Monday, May 4, 2020 at 10:03:04 AM UTC-4, Chris Warrick wrote: > > On Mon, 4 May 2020 at 16:00, Steve > > wrote: