mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:30:04 +08:00
Fixsitemap
This commit is contained in:
parent
465e97c036
commit
537cd948e8
@ -5,7 +5,7 @@ layout: null
|
|||||||
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for post in site.categories.blog_cn %}
|
{% for post in site.categories.blog_cn %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ post.url }}</loc>
|
<loc>{{ site.url }}{{ post.url }}</loc>
|
||||||
{% if post.lastmod == null %}
|
{% if post.lastmod == null %}
|
||||||
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -17,16 +17,14 @@ layout: null
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
{% if page.lang == "zh" %}
|
{% if page.lang == "zh" %}
|
||||||
<loc>{{ page.url }}</loc>
|
<url>
|
||||||
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||||
<!-- <changefreq>{{ page.sitemap.changefreq }}</changefreq> -->
|
|
||||||
<changefreq>weekly</changefreq>
|
<changefreq>weekly</changefreq>
|
||||||
{% if page.sitemap != null and page.sitemap != empty %}
|
{% if page.sitemap != null and page.sitemap != empty %}
|
||||||
<url>
|
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
||||||
<priority>{{ page.sitemap.priority }}</priority>
|
<priority>{{ page.sitemap.priority }}</priority>
|
||||||
</url>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</url>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ layout: null
|
|||||||
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for post in site.categories.blog %}
|
{% for post in site.categories.blog %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ post.url }}</loc>
|
<loc>{{ site.url }}{{ post.url }}</loc>
|
||||||
{% if post.lastmod == null %}
|
{% if post.lastmod == null %}
|
||||||
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -17,16 +17,14 @@ layout: null
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
{% if page.lang != "zh" %}
|
{% if page.lang != "zh" %}
|
||||||
<loc>{{ page.url }}</loc>
|
<url>
|
||||||
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||||
{% if page.sitemap != null and page.sitemap != empty %}
|
|
||||||
<changefreq>weekly</changefreq>
|
<changefreq>weekly</changefreq>
|
||||||
<url>
|
{% if page.sitemap != null and page.sitemap != empty %}
|
||||||
<!-- <changefreq>{{ page.sitemap.changefreq }}</changefreq> -->
|
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
||||||
<priority>{{ page.sitemap.priority }}</priority>
|
<priority>{{ page.sitemap.priority }}</priority>
|
||||||
</url>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</url>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user