Fixes #66
This commit is contained in:
parent
6d4b61dbcd
commit
f8e89a3d27
3 changed files with 40 additions and 0 deletions
|
|
@ -2,5 +2,7 @@
|
||||||
layout: blog
|
layout: blog
|
||||||
section-type: blog
|
section-type: blog
|
||||||
title: Blog
|
title: Blog
|
||||||
|
sitemap:
|
||||||
|
priority: 1.0
|
||||||
---
|
---
|
||||||
##Blog
|
##Blog
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
layout: index
|
layout: index
|
||||||
section-type: index
|
section-type: index
|
||||||
|
sitemap:
|
||||||
|
priority: 1.0
|
||||||
---
|
---
|
||||||
<!--
|
<!--
|
||||||
If you want to have a static message in your intro layout, disable the dynamic-typing in the _config.yml and write here your text
|
If you want to have a static message in your intro layout, disable the dynamic-typing in the _config.yml and write here your text
|
||||||
|
|
|
||||||
36
sitemap.xml
Normal file
36
sitemap.xml
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
layout: null
|
||||||
|
---
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
{% for page in site.pages %}
|
||||||
|
{% if page.sitemap != null and page.sitemap != empty %}
|
||||||
|
<url>
|
||||||
|
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||||
|
{% if page.sitemap %}
|
||||||
|
{% if page.sitemap.lastmod %}
|
||||||
|
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
|
||||||
|
{% endif %}
|
||||||
|
{% if page.sitemap.changefreq %}
|
||||||
|
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
|
||||||
|
{% endif %}
|
||||||
|
{% if page.sitemap.priority %}
|
||||||
|
<priority>{{ page.sitemap.priority }}</priority>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</url>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% for post in site.posts %}
|
||||||
|
<url>
|
||||||
|
<loc>{{ site.url }}{{ site.baseurl }}{{ post.url }}</loc>
|
||||||
|
{% if post.lastmod == null %}
|
||||||
|
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
||||||
|
{% else %}
|
||||||
|
<lastmod>{{ post.lastmod | date_to_xmlschema }}</lastmod>
|
||||||
|
{% endif %}
|
||||||
|
<changefreq>weekly</changefreq>
|
||||||
|
<priority>1.0</priority>
|
||||||
|
</url>
|
||||||
|
{% endfor %}
|
||||||
|
</urlset>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue