jekyll / jekyll-feed

:memo: A Jekyll plugin to generate an Atom (RSS-like) feed of your Jekyll posts
MIT License
826 stars 201 forks source link

Add `site.feed.updated = latest_post` setting #368

Open Krinkle opened 2 years ago

Krinkle commented 2 years ago

Two main uses cases:

  1. Reduce deployment churn in repositories that hold a docsite in addition to source code. These currently regenerate and find something new commit on every change, even when nothing in the site has been changed. The only file changing each time is feed.xml. For example: https://github.com/qunitjs/qunit/commits/gh-pages

  2. Improve reproducibility of the build, as highlighted via https://github.com/jekyll/jekyll/pull/7187, by offering a choice that simply eliminates use of current time entirely, not even having to mock it.

parkr commented 2 years ago

Boolean config options are always restrictive. What if we went with something that allowed the user to decide from one of a list of values? Like feed.updated: latest_post would choose the publish time of the latest post, and feed.updated: site_time (default) would be site.time. Something like that, the values could change but it would grant more freedom in the future.

parkr commented 1 year ago

Cc @vincerubinetti and https://github.com/jekyll/jekyll-feed/issues/387