Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant