迁移基本完成,还有一些页面需要核对

This commit is contained in:
2025-12-22 16:55:31 +08:00
parent 7e44fe8a2a
commit 49fe419232
16 changed files with 327 additions and 24 deletions

16
templates/sitemap.xml Normal file
View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="www.sitemaps.org">
<url>
<loc>{{ base_url }}</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{% for posts in posts %}
<url>
<loc>{{ base_url }}posts/{{ posts['id'] }}</loc>
<lastmod>{{ posts.updated_at }}</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{% endfor %}
</urlset>