1
Fork 0

Use a stylesheet for my RSS feed

This commit is contained in:
Jan-Erik Rediger 2024-02-10 00:15:21 +01:00
parent 5c661f792d
commit 29ae9616dd
3 changed files with 87 additions and 0 deletions

View file

@ -13,6 +13,7 @@ dev: serve rerun
build:
cobalt build
./ext/add-feed-stylesheet.sh _site/feed.xml
.PHONY: build
serve:

10
ext/add-feed-stylesheet.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
{
echo '/<?xml'
printf 's/>/>\\\n/\n'
echo i
echo '<?xml-stylesheet href="/feed-style.xsl" type="text/xsl"?>'
echo .
echo w
} | ed "$*" >/dev/null

76
feed-style.xsl Normal file

File diff suppressed because one or more lines are too long