Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider page dependencies? #94

Open
maul-esel opened this issue Apr 15, 2023 · 1 comment
Open

Consider page dependencies? #94

maul-esel opened this issue Apr 15, 2023 · 1 comment

Comments

@maul-esel
Copy link

I have several pages in my site, whose content is generated based on YAML data in _data, or which display the items of a collection. Currently, only changes to the page source itself are reflected by page.last_modified_at. I would like page.last_modified_at to reflect when the page content changes due to changes in the underlying data / collection (such that the jekyll-sitemap plugin generates correct <lastmod> tags).

Is this feature currently supported, or planned?

If it's not yet supported, I would be willing to take a look into this issue myself, if you could give me some guidance.

@maul-esel
Copy link
Author

maul-esel commented Apr 15, 2023

I have a minimal draft of the first variant (explicitly specifying dependencies): master...maul-esel:jekyll-last-modified-at:specify-dependencies

Usage:

---
lastmod_dependencies:
 collections: ['people'] # names of collections
 data: ['bla'] # names of files in `_data`, not including the .yml extension
---

The second variant (using jekyll's dependency tracking) seems a bit farther off, after some investigation:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant