Skip to content

Commit

Permalink
Add sitemap and robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
cat-a-flame committed Feb 26, 2022
1 parent 8b8350b commit 50ab400
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Sitemap: https://csshell.dev/sitemap.xml

User-agent: *
Disallow:
13 changes: 13 additions & 0 deletions sitemap.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
permalink: /sitemap.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in collections.all %}
<url>
<loc>{{ site.url }}{{ page.url | url }}</loc>
<lastmod>{{ page.date.toISOString() }}</lastmod>
</url>
{% endfor %}
</urlset>

0 comments on commit 50ab400

Please sign in to comment.