fix: sitemap

This commit is contained in:
Cory Dransfeldt 2024-02-17 10:14:49 -08:00
parent 968d5ab11f
commit b3f665b2d2
No known key found for this signature in database
3 changed files with 13 additions and 11 deletions

View file

@ -3,10 +3,9 @@ export default {
siteDescription:
"I'm a software developer in Camarillo, California. I enjoy hanging out with my beautiful family and 4 rescue dogs, technology, automation, music, writing, reading and tv and movies.",
author: 'Cory Dransfeldt',
authorEmail: 'coryd@hey.com',
authorWebsite: 'https://coryd.dev',
email: 'coryd@hey.com',
url: 'https://coryd.dev',
themeColor: '#3b82f6',
url: process.env.URL || 'http://localhost:8080',
siteType: 'Person',
locale: 'en_US',
lang: 'en',

View file

@ -17,7 +17,7 @@ description: 'How to contact me.'
<ul>
<li>Ping me on <a href="https://social.lol/@cory">Mastodon</a></li>
<li>Message me on Signal or iMessage (if you have my phone number)</li>
<li><a href="mailto:{{ meta.authorEmail }}">Email me directly</a> if you have a client set up to use <code>mailto:</code> links</li>
<li><a href="mailto:{{ meta.email }}">Email me directly</a> if you have a client set up to use <code>mailto:</code> links</li>
<li>File an issue on the appropriate repo over at <a href="https://github.com/cdransf">GitHub</a></li>
</ul>
</div>

View file

@ -2,13 +2,16 @@
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>{{ meta.url }}{{ page.url | url }}</loc>
<lastmod>{{ page.date }}</lastmod>
<changefreq>{{page.data.changeFreq}}</changefreq>
</url>
{% if not page.data.draft %}
<url>
<loc>{{ meta.url }}{{ page.url }}</loc>
<lastmod>{{ page.date | isoDateOnly }}</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>
{% endif %}
{% endfor %}
</urlset>
</urlset>