zwbetz-gh / cupper-hugo-theme

An accessibility-friendly Hugo theme, ported from the original Cupper project.
https://cupper-hugo-theme.netlify.app/
MIT License
301 stars 190 forks source link

Add support for the "lastmod" front-matter variable #8

Closed algernon closed 5 years ago

algernon commented 5 years ago

When a post has a lastmod set (when it is different than the publish date, which the variable is set to by default), display the update date below the publish time.

The reason for this is that I have a few posts where I want to show both when a post was created, and when it was last updated, because both are important factors. The update date is only shown if it is explicitly set.

zwbetz-gh commented 5 years ago

Hi @algernon, thank you for this PR. I have added lastmod support in 90caaa3. Am going to go ahead and close out this PR.

algernon commented 5 years ago

Cheers!

Would it be possible to use "Last updated:" for the text? "Last mod date" doesn't sound as nice, with the abbreviation.

zwbetz-gh commented 5 years ago

Sure. It is done c73877d