jekyll / jekyll-sitemap

Jekyll plugin to silently generate a sitemaps.org compliant sitemap for your Jekyll site
http://rubygems.org/gems/jekyll-sitemap
MIT License
949 stars 134 forks source link

Inspect `date` Front Matter variable for pages #267

Closed ArthurZey closed 3 years ago

ArthurZey commented 4 years ago

At present, I understand that the date value for the <lastmod> tag is inherited from the date Front Matter variable for posts, but the last_modified_at Front Matter variable for pages.

Is it possible to also look at the date Front Matter variable for pages as a fallback for those pages that don't have the last_modified_at variable set?

(My usecase is that I try to have generic abstractions across both pages and posts, so I have already populated all my pages with a date Front Matter variable and leverage that in scripts.)

jekyllbot commented 4 years ago

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

ArthurZey commented 4 years ago

I guess it's hard for me to determine whether 80% of users would find this useful, but speaking from personal experience working in technology, I think that generic solutions tend to be really valuable, where all users can get the same abstraction layer and have a cleaner separation of concerns, without everybody having to implement special case-handling logic. So I guess it really depends on how many users have a need to treat posts and pages with some amount of equivalence.

jekyllbot commented 3 years ago

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.