Add sitemap.xml
This commit is contained in:
parent
d3c620ec3b
commit
6449902da2
2 changed files with 19 additions and 0 deletions
|
@ -3,3 +3,4 @@ layout: null
|
|||
---
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Sitemap: {{ "/sitemap.xml" | prepend: site.url }}
|
||||
|
|
18
sitemap.xml
Normal file
18
sitemap.xml
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
layout: null
|
||||
---
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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 %}
|
||||
{% if page.title != null and page.url != '/404.html' %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</urlset>
|
Loading…
Reference in a new issue