Skip to content

Commit

Permalink
Create sitemap.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jwchoi384 committed Oct 19, 2019
1 parent 575237c commit 1af14d7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sitemap.xml
@@ -0,0 +1,20 @@
---
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url | remove: 'index.html' }}</loc>
</url>
{% endfor %}

{% for page in site.pages %}
{% if page.layout != nil %}
{% if page.layout != 'feed' %}
<url>
<loc>{{ site.url }}{{ page.url | remove: 'index.html' }}</loc>
</url>
{% endif %}
{% endif %}
{% endfor %}
</urlset>

0 comments on commit 1af14d7

Please sign in to comment.