DHARPA-Project / kiara-website

Creative Commons Zero v1.0 Universal
0 stars 2 forks source link

Display last modified time on authored pages #37

Closed caro401 closed 7 months ago

caro401 commented 7 months ago

Relevant to end users, I've added a little bit to the title of each page (that isn't in the autogenerated plugin docs section) to let readers know the last time that page was edited. I'm hoping this will help readers have a better idea if what they are reading is likely to be up to date, which has been a problem for our existing docs. You don't need to do anything different when writing, this gets updated automatically when the site builds. It looks like this:

image

Note for future me/other deployers - this uses the git history to work out when a file was last changed. If your build environment only does a shallow clone, all the pages will have been last modified today. You need to prefix your build command with git fetch --unshallow && to get the full git history (or the equivalent for your build platform)