Open chrisevans9629 opened 4 years ago
Hi @chrisevans9629, GitHub pages supports a fairly limited number of plugins due to security reasons, so users cannot use 3rd-party plugins such as this one.
You can consider Netlify which gives you a lot of more options, or build your website locally and push only the _site
folder to your Github pages branch.
I'm also having this issue on Github Pages, and my site is built with Github Actions so there should be no limit to which plugins can be used.
"You can use any Jekyll plugins irrespective of them being on the supported versions list" —link.
I ran into a similar issue on CloudFlare Pages recently. If the GitHub Pages platform is anything like Cloudflare Pages, this could be a shortcoming inherent to many static site generation platforms.
https://github.com/gjtorikian/jekyll-last-modified-at/issues/69#issuecomment-1059857852
It works when you build with github actions
Just commented over here, but tl;dr: if you build the page yourself with Actions, you can try fetch-depth: 0
on the checkout so there isn't just one commit to get the time from.
I put my comment in the other ticket, so repeating here in case it helps someone:
if anyone is interested, this made it finally work: https://github.com/ldemailly/laurentsv/blob/master/.github/workflows/jekyll-gh-pages.yml
When I am running locally, I correctly see the date at the bottom of the page, but when I publish it on github pages, it's completely blank:
my default.html layout:
my config:
my gem: