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

Deducing <lastmod> from git log on a GitHub Pages site #314

Open
sh1boot opened this issue May 31, 2024 · 2 comments
Open

Deducing <lastmod> from git log on a GitHub Pages site #314

sh1boot opened this issue May 31, 2024 · 2 comments

Comments

@sh1boot
Copy link

sh1boot commented May 31, 2024

I see several other bugs here mentioning jekyll-last-modified-at as the source of truth for modification dates, but that plugin is not mentioned in the GitHub Pages Dependency Versions.

Am I right to deduce that this means that the default GitHub Pages deployment can't produce correct modification dates because of this? Or is there another way?

@jamesmacwhite
Copy link

jamesmacwhite commented Jun 23, 2024

GitHub pages only provides a limited set of plugins that can run in a GitHub pages build environment. Essentially any GitHub pages Jekyll build i.e. compile to static is done with the --safe option disabling any plugins, but GitHub pages includes a few directly which are allowed. Anything not listed in the dependency versions list, means it won't be available.

If you want to use the jekyll-last-modified-at plugin, you can't use GitHub pages directly to build your site, but you can still host it on GitHub pages. You'll however need to have another process build/compile the Jekyll and then upload the build to the _site directory on your GitHub pages branch.

Without doing the above, you are limited to setting it in front-end matter files.

For clarification, see the note on the Jekyll plugin installation information "Plugins on GitHub Pages"

@nisbet-hubbard
Copy link

@sh1boot yes, there is another way to do this: #316.

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

3 participants