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: 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.", "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', author: 'Cory Dransfeldt',
authorEmail: 'coryd@hey.com', email: 'coryd@hey.com',
authorWebsite: 'https://coryd.dev', url: 'https://coryd.dev',
themeColor: '#3b82f6', themeColor: '#3b82f6',
url: process.env.URL || 'http://localhost:8080',
siteType: 'Person', siteType: 'Person',
locale: 'en_US', locale: 'en_US',
lang: 'en', lang: 'en',

View file

@ -17,7 +17,7 @@ description: 'How to contact me.'
<ul> <ul>
<li>Ping me on <a href="https://social.lol/@cory">Mastodon</a></li> <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>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> <li>File an issue on the appropriate repo over at <a href="https://github.com/cdransf">GitHub</a></li>
</ul> </ul>
</div> </div>

View file

@ -2,13 +2,16 @@
permalink: /sitemap.xml permalink: /sitemap.xml
eleventyExcludeFromCollections: true eleventyExcludeFromCollections: true
--- ---
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in collections.all %} {% for page in collections.all %}
<url> {% if not page.data.draft %}
<loc>{{ meta.url }}{{ page.url | url }}</loc> <url>
<lastmod>{{ page.date }}</lastmod> <loc>{{ meta.url }}{{ page.url }}</loc>
<changefreq>{{page.data.changeFreq}}</changefreq> <lastmod>{{ page.date | isoDateOnly }}</lastmod>
</url> <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 %} {% endfor %}
</urlset> </urlset>