Nathan Upchurch ec4c5d259b Fix xsl error
How dare I try to use an <hr>?!
2025-01-24 14:05:00 -06:00

50 lines
1.9 KiB
Plaintext

---
pagination:
data: collections
size: 1
alias: tag
filter:
- all
- post
- posts
- tagList
- gallery
- galleryImages
addAllPagesToCollections: true
eleventyComputed:
title: “{{ tag }}”
permalink: "/feeds/{{ tag | slugify }}.xml"
---
<?xml version="1.0" encoding="utf-8"?>{% set postslist = collections[ tag ] %}
<?xml-stylesheet href="../xsl/basic.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.language }}">
<title>{{ title }} from {{ metadata.title }}</title>
<subtitle>{{ tag }}: {{ metadata.description }}</subtitle>
<link href="{{ metadata.url }}feeds/{{ tag | slugify }}.xml" rel="self"/>
<link href="{{ metadata.url | addPathPrefixToFullUrl }}"/>
<updated>{{ postslist | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.url }}</id>
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for post in postslist | reverse %}
{% set absolutePostUrl %}{{ post.url | htmlBaseUrl(metadata.url) }}{% endset %}
{% if post.data.imageURL %}{% set imageURL %}{{ post.data.imageURL | htmlBaseUrl(metadata.url) }}{% endset %}{% endif %}
{% set defaultImageURL %}{{ metadata.defaultPostImageURL | htmlBaseUrl(metadata.url) }}{% endset %}
<entry>
<title>{{ post.data.title | safe }}</title>
<description>{{ post.data.description | truncate(150) }}</description>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
<image>
<url>{% if post.data.imageURL %}{{ imageURL }}{% else %}{{ defaultImageURL }}{% endif %}</url>
<title>{% if post.data.imageAlt %}{{ post.data.imageAlt }}{% else %}{{ metadata.defaultPostImageAlt }}{% endif %}</title>
<link href="{{ absolutePostUrl }}"/>
</image>
<content type="html">{{ post.templateContent | transformWithHtmlBase(absolutePostUrl, post.url) }}</content>
</entry>
{%- endfor %}
</feed>