-
Notifications
You must be signed in to change notification settings - Fork 138
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
lastmod not set for pages rendered as a folder #208
Comments
Actually it seems like lots of 'pages' (i.e. files with frontmatter) are not given a lastmod, and we need to use That seems very unnecessary, and a default fallback of using the file mtime would be sufficient for most people. |
The big problem here is that GitHub Pages only gets a shallow clone of the repository, so everything would have the same mtime. Any work-around is beyond the scope of this plugin, which is why we rely on jekyll-last-modified-at. As far as not checking |
When I add
Yea, that is a problem with any git clone, not just shallow clones. (I checked GitLab Pages has the same). That means my "would be sufficient for most people" is likely not correct. That said, it is core jekyll functionality to preserve mtimes. See jekyll/jekyll#3220 This will help anyone who is doing builds on Travis CI and pushing the results to a So, I've raised an issue over at gjtorikian/jekyll-last-modified-at#54 . |
If the page permalink does not contain an extension, such as
.html
/:output_ext
, jekyll creates a folder with anindex.html
inside, andjekyll-sitemap
only emits aloc
without alastmod
.The text was updated successfully, but these errors were encountered: