Update sitemap automation
This commit is contained in:
12
sitemap.xml
12
sitemap.xml
@@ -6,20 +6,14 @@ search: exclude
|
|||||||
<?xml version="1.0" encoding="URF-8"?>
|
<?xml version="1.0" encoding="URF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
|
{% assign page_url_end = page.url| slice: -4, 4 %}
|
||||||
|
{% if page.url != "/sitemap.xml" and page_url_end != ".css" %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ page.url }}</loc>
|
<loc>{{ page.url }}</loc>
|
||||||
<lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod>
|
<lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
<priority>0.5</priority>
|
<priority>0.5</priority>
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
|
|
||||||
{% for post in site.posts %}
|
|
||||||
<url>
|
|
||||||
<loc>{{ post.url }}</loc>
|
|
||||||
<lastmod>{{ site.time | date: '%Y-%m-%d' }}</lastmod>
|
|
||||||
<changefreq>daily</changefreq>
|
|
||||||
<priority>0.5</priority>
|
|
||||||
</url>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|||||||
Reference in New Issue
Block a user