Adds XSL stylesheet for better Atom feed preview!

This commit is contained in:
Zach Leatherman 2024-04-24 17:31:32 -05:00
parent 02b4fdf991
commit d59b6e1f7a
3 changed files with 92 additions and 0 deletions

View File

@ -6,6 +6,7 @@ eleventyNavigation:
order: 3
---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/feed/pretty-atom-feed.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.language }}">
<title>{{ metadata.title }}</title>
<subtitle>{{ metadata.description }}</subtitle>

File diff suppressed because one or more lines are too long

View File

@ -17,6 +17,8 @@ export default async function(eleventyConfig) {
"./node_modules/prismjs/themes/prism-okaidia.css": "/css/prism-okaidia.css"
});
eleventyConfig.addPassthroughCopy("./content/feed/pretty-atom-feed.xsl");
// Run Eleventy when these files change:
// https://www.11ty.dev/docs/watch-serve/#add-your-own-watch-targets