-
Notifications
You must be signed in to change notification settings - Fork 305
Description
Issue originally opened in jekyll/jekyll#9817, moved to this repository according to @ashmaroli it's more of a jekyll-seo-tag
issue:
When collection items do not get a date neither via a front matter or the filename, they are given a date that corresponds to the last time the website was built. This normally doesn't cause issues because the code using those collections doesn't need to care about dates, but it creates problems with this plugin, since all pages with a specified date are given an "article"
type, and not "website"
. As far as I can tell, there is no way to opt-out of this behaviour in specific collection pages.
Code Sample
This issue is observable on my blog:
view-source:https://cookieplmonster.github.io/mods/gta/
where all /mods/
pages are built from a _games
collection, where items do not have dates specified:
https://github.com/CookiePLMonster/CookiePLMonster.github.io/tree/master/_games
At the time of submitting this issue, jekyll-seo-tag
outputs the following tags for this page:
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2025-04-29T18:20:50+00:00" />
where this date is the last time the website was built. This behaviour is not desirable - I wish for those pages to be of a type "website"
, much like all pages built from pages
, and with no dates specified.