1
Fork 0

Compare commits

...

2 commits

4 changed files with 88 additions and 1 deletions

View file

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

View file

@ -14,7 +14,7 @@ posts:
default: {} default: {}
site: site:
title: fnordig title: fnordig
description: fnordig description: "A blog about Rust, data and my life."
base_url: "https://fnordig.de" base_url: "https://fnordig.de"
data: ~ data: ~
template_extensions: template_extensions:

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