Skip to content

Commit

Permalink
sitemap.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
O-h-y-o committed Jul 4, 2023
1 parent eeb8c35 commit 006c355
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -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>{{ https://o-h-y-o.github.io }}{{ post.url | remove: 'index.html' }}</loc>
</url>
{% endfor %}

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

0 comments on commit 006c355

Please sign in to comment.