Adds XSL stylesheet for better Atom feed preview!
This commit is contained in:
parent
02b4fdf991
commit
d59b6e1f7a
@ -6,6 +6,7 @@ eleventyNavigation:
|
|||||||
order: 3
|
order: 3
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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 }}">
|
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.language }}">
|
||||||
<title>{{ metadata.title }}</title>
|
<title>{{ metadata.title }}</title>
|
||||||
<subtitle>{{ metadata.description }}</subtitle>
|
<subtitle>{{ metadata.description }}</subtitle>
|
||||||
|
89
content/feed/pretty-atom-feed.xsl
Normal file
89
content/feed/pretty-atom-feed.xsl
Normal file
File diff suppressed because one or more lines are too long
@ -17,6 +17,8 @@ export default async function(eleventyConfig) {
|
|||||||
"./node_modules/prismjs/themes/prism-okaidia.css": "/css/prism-okaidia.css"
|
"./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:
|
// Run Eleventy when these files change:
|
||||||
// https://www.11ty.dev/docs/watch-serve/#add-your-own-watch-targets
|
// https://www.11ty.dev/docs/watch-serve/#add-your-own-watch-targets
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user