Skip to content

Commit 7eed2d2

Browse files
committed
Add sitemap.xml template
1 parent 8885c00 commit 7eed2d2

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/templates/pages/sitemap.txp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?><txp:header value="application/xml; charset=utf-8" />
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc><txp:site_url /></loc>
5+
</url>
6+
<txp:section_list break="" exclude="sitemap">
7+
<url>
8+
<loc><txp:section url /></loc>
9+
</url>
10+
</txp:section_list>
11+
<txp:article_custom section="plugins" limit="9999">
12+
<url>
13+
<loc><txp:permlink /></loc>
14+
</url>
15+
</txp:article_custom>
16+
<txp:article_custom section="authors" limit="999">
17+
<url>
18+
<loc><txp:permlink /></loc>
19+
</url>
20+
</txp:article_custom>
21+
</urlset>

0 commit comments

Comments
 (0)