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 ? Le mardi 6 mars 2018 13:47:21 UTC+1, Roberto Alsina a écrit : > > Don't worry it's pretty easy. > > If you are using the default theme, just run this: > > nikola theme -c post_header.tmpl > > That will tell you something like this: > > Copied template from bla/bla/bla/templates/post_header.tmpl to > templates/post_header.tmpl > > Then you edit templates/post_header.tmpl > > You will see a part that looks like this: > > <%def name="html_post_header()"> > > In there is the HTML fragment that shows the post metadata. It's a bit > messy but it should be understandable. Add your metadata in there. Dates > are specially tricky since we try to be smart about formatting them, but we > can try to figure something out. > > On Tue, Mar 6, 2018 at 9:36 AM asmoth <asmo...@gmail.com <javascript:>> > wrote: > >> Thank you for your answer. I didn't look at how templates work yet, I'll >> try :) Anyway that's a shame there is no way to do it automatically. >> >> >> Le mardi 6 mars 2018 13:21:45 UTC+1, Roberto Alsina a écrit : >> >>> You can add it as metadata in the post and then change the templates to >>> show it. >>> >>> El mar., 6 de mar. de 2018 9:17 AM, asmoth <asmo...@gmail.com> escribió: >>> >> Hey everyone, I discovered Nikola yesterday and thought I might be using >>>> it for a blog, it looks great. >>>> As I was exploring the configuration options and doing some tests, I >>>> was wondering if there was a way to show an edit date. You can display the >>>> creation date of course, and edit it later, but that's not exactly what I >>>> want. So do you know if there a way to keep the original creation date, >>>> *and >>>> *show that the post has later been edited and when ? >>>> >>>> Thanks! >>>> >>>> -- >>>> 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-discus...@googlegroups.com. >>> >>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> 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-discus...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- 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.