Updates
This commit is contained in:
parent
fe30dbd1b5
commit
f5cac71642
2 changed files with 26 additions and 21 deletions
17
feed.xml
17
feed.xml
|
@ -1,10 +1,8 @@
|
||||||
---
|
---
|
||||||
layout: null
|
layout: null
|
||||||
---
|
---
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
|
||||||
<title>{{ site.title }}</title>
|
<title>{{ site.title }}</title>
|
||||||
<link href="{{ site.url }}/atom.xml" rel="self"/>
|
<link href="{{ site.url }}/atom.xml" rel="self"/>
|
||||||
<link href="{{ site.url }}/"/>
|
<link href="{{ site.url }}/"/>
|
||||||
|
@ -16,13 +14,12 @@ layout: null
|
||||||
</author>
|
</author>
|
||||||
|
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<entry>
|
<entry>
|
||||||
<title>{{ post.title }}</title>
|
<title>{{ post.title }}</title>
|
||||||
<link href="{{ site.url }}{{ post.url }}"/>
|
<link href="{{ site.url }}{{ post.url }}" />
|
||||||
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
||||||
<id>{{ site.url }}{{ post.id }}</id>
|
<id>{{ site.url }}{{ post.id }}</id>
|
||||||
<content type="html">{{ post.content | xml_escape }}</content>
|
<content type="html">{{ post.content | xml_escape }}</content>
|
||||||
</entry>
|
</entry>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</feed>
|
</feed>
|
||||||
|
|
30
sitemap.xml
30
sitemap.xml
|
@ -3,20 +3,28 @@ layout: null
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}</loc>
|
<loc>{{ site.url }}</loc>
|
||||||
</url>
|
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
||||||
|
</url>
|
||||||
|
|
||||||
{% for page in site.pages %}
|
{% assign pages_list = site.pages %}
|
||||||
<url>
|
{% for node in pages_list %}
|
||||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
{% if node.title != null and node.url != '/404.html' %}
|
||||||
</url>
|
<url>
|
||||||
{% endfor %}
|
<loc>{{ site.url }}{{ node.url }}</loc>
|
||||||
|
</url>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}{{ post.url }}</loc>
|
<loc>{{ site.url }}{{ post.url }}</loc>
|
||||||
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
{% if post.modified != nil %}
|
||||||
|
<lastmod>{{ post.modified | date_to_xmlschema }}</lastmod>
|
||||||
|
{% else %}
|
||||||
|
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
|
||||||
|
{% endif %}
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
Loading…
Reference in a new issue