Use a stylesheet for my RSS feed
This commit is contained in:
parent
5c661f792d
commit
29ae9616dd
1
Makefile
1
Makefile
|
@ -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:
|
||||||
|
|
10
ext/add-feed-stylesheet.sh
Executable file
10
ext/add-feed-stylesheet.sh
Executable 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
76
feed-style.xsl
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue