chore: consolidate feeds + meta to clean up top level src

This commit is contained in:
Cory Dransfeldt 2024-07-16 15:48:44 -07:00
parent 4dca0dfb3e
commit 2b59bf9d24
No known key found for this signature in database
12 changed files with 5 additions and 5 deletions

8
src/pages/meta/ai.liquid Normal file
View file

@ -0,0 +1,8 @@
---
permalink: "/ai.txt"
eleventyExcludeFromCollections: true
dynamicPermalink: false
---
User-Agent: *
Disallow: /
Disallow: *

View file

@ -0,0 +1,17 @@
---
permalink: "/blogroll.opml"
layout: null
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>OPML for all feeds in Cory Dransfeldt's blogroll</title>
<dateCreated>{{ page.date | stringToRFC822Date }}</dateCreated>
</head>
<body>
{%- for blog in blogroll -%}
<outline text="{{ blog.name }}" title="{{ blog.name }}" type="rss" xmlUrl="{{ blog.rss_feed }}" htmlUrl="{{ blog.url }}"/>
{%- endfor -%}
</body>
</opml>

View file

@ -0,0 +1,14 @@
---
permalink: "/robots.txt"
eleventyExcludeFromCollections: true
dynamicPermalink: false
---
Sitemap: https://coryd.dev/sitemap.xml
User-agent: *
Disallow:
{% for robot in robots -%}
User-agent: {{ robot }}
{% endfor -%}
Disallow: /

View file

@ -0,0 +1,15 @@
---
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.siteMap %}
<url>
<loc>{{ globals.url }}{{ page.url }}</loc>
<lastmod>{{ page.date | date: '%Y-%m-%d' }}</lastmod>
<changefreq>{% if page.data.changeFreq %}{{ page.data.changeFreq }}{% else %}monthly{% endif %}</changefreq>
<priority>{% if page.data.priority %}{{ page.data.priority }}{% else %}0.5{% endif %}</priority>
</url>
{% endfor %}
</urlset>