Add a article:modified_time property for articles #515
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for
article:modified_time
meta property, utilizing the sameseo_tag
drop values as JSON-LD does.Two other PRs adding this feature (#447 and #505) are also open, but my attempt has the following advantages:
seo_tag
drop values are used for complete consistency with the JSON-LD output. This ensures compatibility with bothpage.last_modified_at
andseo.date_modified
front matter attributes. I also extended this to the published date instead of usingpage.date
directly.seo.date_modified
also influences this new meta property.Verified working using my own website - on a test blog post, I can see a new meta property added:
The behaviour of adding the modification time even if it equals the publishing time matches jekyll-feed.