Thank you, it works better indeed ^^ Couldn't this be documented somewhere 
? I didn't find until I asked here.

A last question : what does mean the « h » at the end of some parts like : 
${post.author()|h} or ${post.formatted_date(date_format)|h} ? I don't see 
the difference if it's there or not.


Le mardi 6 mars 2018 14:49:12 UTC+1, Chris Warrick a écrit :
>
> On 6 March 2018 at 14:36, asmoth <asmo...@gmail.com <javascript:>> wrote: 
> > Thank you. 
> > I managed to add the date by adding a "date-edit" metadata in the post, 
> and 
> > adding this part in the template : 
> > 
> >             % if post.meta('date-edit'): 
> >                 <p class="dateline" itemprop="datedit">Édité : 
> > ${post.meta('date-edit')}</p> 
> >             % endif 
> > 
> > But I don't get how to get it formatted, would you know how to do it ? 
>
> First: use the name `updated`. This one is used internally, although 
> the default templates don’t display it. 
>
> If you use `updated`, you can use the post.formatted_updated function: 
>
> % if post.updated != post.date: 
> <p class="dateline">Édité : ${post.formatted_updated(date_format)}</p> 
> % endif 
>
> (Other names require manual use of date formatting functions.) 
>
> -- 
> Chris Warrick <https://chriswarrick.com/> 
> PGP: 5EAAEA16 
>

-- 
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, send an email 
to nikola-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to