Skip to content

Commit

Permalink
reverting yyyy change
Browse files Browse the repository at this point in the history
  • Loading branch information
aloxe committed Sep 13, 2024
1 parent 4073ed6 commit 4dcf218
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/layouts/sitemap.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{%- for item in collections.article %}
<url>
<loc>{{ item.url | absoluteUrl(meta.url) }}</loc>
<lastmod>{{ item.date | date("YYYY-MM-dd")}}</lastmod>
<lastmod>{{ item.date | date("yyyy-MM-ddTHH:mm:sszzz")}}</lastmod>
<changefreq>{{ item.data.sitemapChangefreq | default("monthly") }}</changefreq>
<priority>{{ item.data.sitemapPriority | default(0.8) }}</priority>
</url>
Expand All @@ -14,23 +14,23 @@
{%- if item.url.split("/")[1] === "" %}
<url>
<loc>{{ item.url | absoluteUrl(meta.url) }}</loc>
<lastmod>{{ item.date | date("YYYY-MM-dd")}}</lastmod>
<lastmod>{{ item.date | date("yyyy-MM-ddTHH:mm:sszzz")}}</lastmod>
<changefreq>{{ item.data.sitemapChangefreq | default("weekly") }}</changefreq>
<priority>{{ item.data.sitemapPriority | default(0.8) }}</priority>
</url>
{%- endif -%}
{%- if item.url.split("/")[1] === "decouverte" %}
<url>
<loc>{{ item.url | absoluteUrl(meta.url) }}</loc>
<lastmod>{{ item.date | date("YYYY-MM-dd")}}</lastmod>
<lastmod>{{ item.date | date("yyyy-MM-ddTHH:mm:sszzz")}}</lastmod>
<changefreq>{{ item.data.sitemapChangefreq | default("yearly") }}</changefreq>
<priority>{{ item.data.sitemapPriority | default(0.7) }}</priority>
</url>
{%- endif -%}
{%- if item.url.split("/")[1] === "liens" %}
<url>
<loc>{{ item.url | absoluteUrl(meta.url) }}</loc>
<lastmod>{{ item.date | date("YYYY-MM-dd")}}</lastmod>
<lastmod>{{ item.date | date("yyyy-MM-ddTHH:mm:sszzz")}}</lastmod>
<changefreq>{{ item.data.sitemapChangefreq | default("monthly") }}</changefreq>
<priority>{{ item.data.sitemapPriority | default(0.5) }}</priority>
</url>
Expand All @@ -41,7 +41,7 @@
{%- set snipeturl = "/"+categoryUrl(item.slug) | trim %}
<url>
<loc>{{ snipeturl | absoluteUrl(meta.url) }}</loc>
<lastmod>{{ page.date | date("YYYY-MM-dd")}}</lastmod>
<lastmod>{{ page.date | date("yyyy-MM-ddTHH:mm:sszzz")}}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.3</priority>
</url>
Expand Down

0 comments on commit 4dcf218

Please sign in to comment.