mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50: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">
|
||||
{% for post in site.categories.blog_cn %}
|
||||
<url>
|
||||
<loc>{{ post.url }}</loc>
|
||||
<loc>{{ site.url }}{{ post.url }}</loc>
|
||||
{% if post.lastmod == null %}
|
||||
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
||||
{% else %}
|
||||
@ -17,16 +17,14 @@ layout: null
|
||||
{% endfor %}
|
||||
{% for page in site.pages %}
|
||||
{% if page.lang == "zh" %}
|
||||
<loc>{{ page.url }}</loc>
|
||||
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
||||
<!-- <changefreq>{{ page.sitemap.changefreq }}</changefreq> -->
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
{% if page.sitemap != null and page.sitemap != empty %}
|
||||
<url>
|
||||
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
||||
<priority>{{ page.sitemap.priority }}</priority>
|
||||
</url>
|
||||
{% endif %}
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</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">
|
||||
{% for post in site.categories.blog %}
|
||||
<url>
|
||||
<loc>{{ post.url }}</loc>
|
||||
<loc>{{ site.url }}{{ post.url }}</loc>
|
||||
{% if post.lastmod == null %}
|
||||
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
||||
{% else %}
|
||||
@ -17,16 +17,14 @@ layout: null
|
||||
{% endfor %}
|
||||
{% for page in site.pages %}
|
||||
{% if page.lang != "zh" %}
|
||||
<loc>{{ page.url }}</loc>
|
||||
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
||||
{% if page.sitemap != null and page.sitemap != empty %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<url>
|
||||
<!-- <changefreq>{{ page.sitemap.changefreq }}</changefreq> -->
|
||||
{% if page.sitemap != null and page.sitemap != empty %}
|
||||
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
||||
<priority>{{ page.sitemap.priority }}</priority>
|
||||
</url>
|
||||
{% endif %}
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user