修改主页,感觉还可以
This commit is contained in:
29
templates/blog/sitemap.xml
Executable file
29
templates/blog/sitemap.xml
Executable file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>{{ base_url }}</loc>
|
||||
<lastmod>2025-12-22</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% for post in posts %}
|
||||
<url>
|
||||
<loc>{{ base_url }}posts/{{ post['id'] }}/</loc>
|
||||
<lastmod>{{ post['date'].replace('.', '-') }}</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
<url>
|
||||
<loc>{{ base_url }}posts/</loc>
|
||||
<lastmod>2025-12-23</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>{{ base_url }}mirrors/</loc>
|
||||
<lastmod>2025-12-23</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user