-
Notifications
You must be signed in to change notification settings - Fork 359
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
Add dependency on jekyll-last-modified-at #119
base: master
Are you sure you want to change the base?
Conversation
Add jekyll-last-modified-at to make it easier to time stamp built pages. Currently this requires us to do a static build locally, but it seems like a feature that would be widely used.
@gjtorikian, any strong opinions here? |
👍 ✖️ 💯 @aepstein 👋 from a former Cornell student! @benbalter There might be some security concerns around the files passed to |
Unfortunately, this plugin simply does not work on GitHub Pages: gjtorikian/jekyll-last-modified-at#32 We've looked into it; the Pages instance only clones with a |
That's strange. I just used it on an item in a collection today and it only updated the last modified date for that one item. I left a comment here: gjtorikian/jekyll-last-modified-at#32 I feel it would be very beneficial to have this plug-in as a part of the Pages gem. |
@parkr would you mind reopening this until there's been some further investigation? |
This PR should go up to Things have changed so much in the last couple of years that this may be working again. Who knows, let's found out! |
@gjtorikian will this work with a shallow (e.g., |
I truly have no idea.
I hate to pull the "not my team!" card, but, I am pretty busy at work at the moment and don't have the time to give this a thorough testing. Mostly because I am no longer sure how the internals of Jekyll/Pages work. |
We pull with |
Aside: My testing was not on GH Pages, but using Git itself with a Cloud CMS for editing from a Web-based GUI which preserves individual file history. |
It should be technically possible. Moreover, right now, given a Git tree, you could list all the entries in that tree via GraphQL. I don't know if that's useful though. |
Thanks Pat for the references. Apologies for the unnecessary issue! --depth 1 will just grab branch tips and unless I'm missing something that will work ok for publishing purposes. So I brought this into my local jekyll and it seems to be grabbing the timestamps correctly. But it adds a bunch of time to startup as noted. However I'm wondering if it would be possible to whitelist as-is until said optimization above is avail (great idea and willing to assist). That way we could still use it in the interim. Thoughts? |
Taking a fresh look at this. Modified dates are a fundamental part of the web and should be worked into core for majority benefit—not just GH pages. |
Highly awaiting this gem to be working, it should be a basic thing in times of modern websites. 😄 |
Note there are some very serious problems with the plugin, especially its test suite, that need fixing before this should be whitelisted or added as a dependency. |
I made an update version of this PR (see here for the relevant tree), but then realized this issue is still blocked by the fact that And it seems jekyll/github-metadata#130 also went nowhere so far (due to a lack of volunteers with the time and skills to implement it, I guess). Pity :-( |
See #838 (comment) for a different way to automate |
Add jekyll-last-modified-at to make it easier to time stamp built pages. Currently this requires us to do a static build locally, but it seems like a feature that would be widely used.