diff --git a/src/_data/meta.js b/src/_data/meta.js index 45d52559..b5196fbc 100644 --- a/src/_data/meta.js +++ b/src/_data/meta.js @@ -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', diff --git a/src/pages/contact.md b/src/pages/contact.md index aa7ca25f..318f1809 100644 --- a/src/pages/contact.md +++ b/src/pages/contact.md @@ -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> diff --git a/src/pages/sitemap.liquid b/src/pages/sitemap.liquid index 5059b59b..a20e66c2 100644 --- a/src/pages/sitemap.liquid +++ b/src/pages/sitemap.liquid @@ -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> \ No newline at end of file