Skip to content

Commit

Permalink
Disable lastmod in sitemap for now
Browse files Browse the repository at this point in the history
  • Loading branch information
NeeEoo committed Oct 16, 2024
1 parent d4dd294 commit ecc728f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sitemap.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function buildFile(pageDir, exportPath) {
link: (root + link).replace(/\/\//g, "/"),
prio: prio,
//prio: forcePrio[link] ?? (foundLinks[link] / total),
time: curTime
//time: curTime
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/sitemap.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
{{ #links }}
<url>
<loc>{{link}}</loc>
<lastmod>{{time}}</lastmod>{{#prio}}
<loc>{{link}}</loc>{{#time}}
<lastmod>{{time}}</lastmod>{{/time}}{{#prio}}
<priority>{{prio}}</priority>{{/prio}}
</url>
{{ /links }}
Expand Down
1 change: 1 addition & 0 deletions src/toplevel/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sitemap.xml linguist-generated

0 comments on commit ecc728f

Please sign in to comment.