Adding Dates to Nikola's Static Pages 0 ▲ Ben Tasker 1 hour ago · Tech · hide · 0 comments Nikola automatically adds the date of publication and updates to blog posts, but most templates do not do the same for pages. I use static pages for things like policies and I wanted them to be able to show when a policy was last updated. This post describes adjusting a Nikola theme to show publication dates and to automatically append a list of dates that the page was changed. Installing the page template We need to copy the page template into our theme: nikola theme -c page.tmpl Having done this, though, I found that my theme reuses the story template: cat themes/btasker/templates/page.tmpl <%inherit file="story.tmpl"/> So I needed to copy that in instead rm themes/bootblog4-btasker/templates/page.tmpl nikola theme -c story.tmpl Customising Page Frontmatter I decided that I'd add a simple array of change dates, newest first: whenever I make an update, I'll just need to prepend the current date. I also added the category attribute to make gating the functionality easier: ..… No comments yet. Log in to reply on the Fediverse. Comments will appear here.