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