Skip to content

Commit

Permalink
Add a sitemap and provide alternate URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Aug 3, 2021
1 parent 2a7d7ab commit 7910cb8
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 @@
---
layout: null
search: exclude
---

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

{% for page in site.pages %}
<url>
<loc>{{page.url}}</loc>
<xhtml:link rel="alternate" hreflang="zh" href="{{page.alternate.zh}}" />
<xhtml:link rel="alternate" hreflang="ja" href="{{page.alternate.ja}}" />
<lastmod>{{site.time | date: '%Y-%m-%d' }}</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
{% endfor %}

</urlset>

0 comments on commit 7910cb8

Please sign in to comment.