Add configurable timestamping for posts (#494)
* Add configurable timestamping * Add attribution for configurable timestamping * Add new post timestamp options to example hugo.toml * All date formats are now set by single config option in site or page config * Add post timestamp explainer and examples to example config file * Add configurable timestamping value to frontmatter archetype * Explain possible timezone rendering issue with new time formatting * Fix bug concerning time/date tokens * Convert datestamps to work with a partial * Fix issue with lastmod being equal to date * Add Updated prefix functionality
This commit is contained in:
parent
08ec931cea
commit
c779a70834
8 changed files with 45 additions and 5 deletions
14
README.md
14
README.md
|
@ -203,6 +203,20 @@ paginate = 5
|
|||
# can be overridden in a page's front-matter
|
||||
# TocTitle = "Table of Contents" # default
|
||||
|
||||
# Set date/time format for posts
|
||||
# This will impact the date/time displayed on
|
||||
# index.html, the posts list page, and on posts themselves
|
||||
# This value can also be configured per-post on front matter
|
||||
# If you have any issues with the timezone rendering differently
|
||||
# than you expected, please ensure your timezone is correctly set
|
||||
# on your server.
|
||||
# This value can be customized according to Hugo documentation:
|
||||
# https://gohugo.io/functions/time/format/
|
||||
# Default value (no changes needed):
|
||||
# dateFormat = "2006-01-02"
|
||||
# Example format, with date, time, and timezone abbreviation:
|
||||
# dateFormat = "2006-01-02 3:04:06 PM MST"
|
||||
|
||||
|
||||
[params.twitter]
|
||||
# set Twitter handles for Twitter cards
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue