Files
www-ssg/src/blog/feeds/atom.xml.njk

47 lines
2.0 KiB
Plaintext
Raw Normal View History

2025-03-26 23:04:06 -04:00
---
permalink: /blog/atom.xml
eleventyExcludeFromCollections: true
metadata:
title: "Garrett's Blog"
description: "Write-ups and musings by Garrett Mills, often technical, sometimes not."
language: en
base: "https://garrettmills.dev"
author:
name: "Garrett Mills"
email: "shout@garrettmills.dev"
---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://localhost:8080/blog/feed.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ metadata.base }}/#about</id>
<title>{{ metadata.title }}</title>
<updated>{{ collections.blog | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
<uri>{{ metadata.base }}/#about</uri>
</author>
<link rel="alternate" href="{{ metadata.base }}/blog"/>
<link rel="self" href="{{ metadata.base }}/blog/atom.xml"/>
<subtitle>{{ metadata.description }}</subtitle>
<logo>{{ metadata.base }}/assets/favicon/apple-touch-icon.png</logo>
<icon>{{ metadata.base }}/assets/favicon/favicon.ico</icon>
<rights>Copyright (c) 2025 Garrett Mills. See website for licensing details.</rights>
<category term="Technology"/>
<category term="Software Development"/>
{%- for post in collections.blog %}
{%- set absolutePostUrl = post.url | htmlBaseUrl(metadata.base) %}
<entry>
<title type="html"><![CDATA[{{ post.data.title }}]]></title>
<id>{{ absolutePostUrl }}</id>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | dateToRfc3339 }}</updated>
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
<uri>{{ metadata.base }}/#about</uri>
</author>
<content type="html">{{ post.content | renderTransforms(post.data.page, metadata.base) }}</content>
</entry>
{%- endfor %}
</feed>