-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Last Modified Datetime to Meta #136
Comments
Is this plugin whitelisted in gh-pages? |
You can check here: https://github.com/github/pages-gem/blob/master/lib/github-pages/plugins.rb |
So, that's a no... I don't think it's worth dropping pages support for this. |
@pathawks weighed, suggestion GH pages may never be able to support the Last-Modified-At gem. Maybe we'll see some kind of support built into Jekyll in the future, otherwise it can be achieved via front matter for those who are interested. That said, I'm using it currently with CloudCannon on the ChicagoGangHistory website and it works gloriously. Ref: github/pages-gem#119 |
I jumped the gun on closing this. I believe the gem may still see GH pages support once some validation occurs. |
Feeling Responsive includes
_meta_information.html
whenshow_meta
is truthy. Meta information output includes thedate
with a calendar icon. It would be beneficial for user agents and the Web infrastructure if we also included the last modified time.Last modified time can be included using the
jekyll-last-modified-at
gem. Here's an example update to the meta info include file to incorporate this data when the gem is present (and enabled via config):The above looks like this when output:
Considerations:
This is a little verbose, mind you, as user agents and readers alike may benefit from conditionally visually displaying one or the other depending on which is available and more recent. In other words, only show one calendar icon and date, specify which it is (one of Published or Last Modified), but output both, if available, to the page (one as
meta
with microformat data, or using JSON-LD).The text was updated successfully, but these errors were encountered: