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

Last Modified No Longer Works #1

Open
EdenKupe opened this issue Nov 27, 2019 · 3 comments
Open

Last Modified No Longer Works #1

EdenKupe opened this issue Nov 27, 2019 · 3 comments

Comments

@EdenKupe
Copy link

Hey,

Trying my luck shouting into the void here :) It seems as if this plugin (and others like it) don't work any more. When building locally, the last modified date works fine. But when going to production (and people have tried several different environments, like AWS/Platform/Haroku), all the dates display the current date.

Any ideas? Was this caused by a chance to Jekyll?

Thanks!

@michaelx
Copy link
Owner

What’s your environment? I deployed (https://mymorningroutine.com/sitemap.xml) today and it’s still working, albeit I’m not using the latest Jekyll (3.8.5 with Ruby 2.5.3).

When building locally, the last modified date works fine.

Does this refer to jekyll build or jekyll serve? How do you build and deploy?

Hope we can figure it out :)

@chocmake
Copy link

Possibly related to the same issue from this thread, where users experienced a similar thing with AWS, Heroku and Cloudflare.

@slsu0424
Copy link

slsu0424 commented Jun 2, 2024

@michaelx - I came across your solution via this forum - https://talk.jekyllrb.com/t/how-to-set-lastmod-to-file-modified-date/8609

I'm running into the same issue. I've am customizing one of the Jekyll themes that is compatible with GitHub pages (https://jekyllthemes.io/theme/mediumish) for personal use.

It seems that once I add {% last_modified {{ post.path }} %} to _layouts/post.html, the build fails with the following error:
 
Requiring: kramdown-parser-gfm Rendering Layout: _posts/2024-06-02-sample-post.md Layout source: site github-pages 231 \| Error: Liquid syntax error (line 39): Unknown tag 'last_modified'.

I've followed the installation as mentioned in the README.md.

I'm fairly new to Ruby/Jekyll - any ideas of where to start for troubleshooting?
 

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

No branches or pull requests

4 participants