We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76145f5 + 1055f6c commit 56a8353Copy full SHA for 56a8353
1 file changed
src/pages/docs/sitemap.xml.ts
@@ -25,7 +25,7 @@ async function getData() {
25
pages.push(`
26
<url>
27
<loc>${SITE.url + url}</loc>
28
- <lastmod>${article.frontmatter.pubDate}</lastmod>
+ <lastmod>${article.frontmatter.modDate ?? article.frontmatter.pubDate}</lastmod>
29
</url>`);
30
}
31
0 commit comments