🛠️ exec
parent
3efc55d7b9
commit
8cd4612ef2
9
justfile
9
justfile
|
@ -9,9 +9,10 @@ html:
|
|||
# build rss feed from journal
|
||||
rss:
|
||||
#!/usr/bin/env sh
|
||||
echo "<rss version=\"2.0\"><channel><title>piblog</title>" > www/feed.xml
|
||||
echo "<link>http://tilde.town/~dozens/piblog/index.html</link><description>just a little log about my raspberry pi</description><atom:link rel=\"self\" type=\"application/rss+xml\" href=\"http://tilde.town/~dozens/piblog/feed.xml\"/>" >> www/feed.xml
|
||||
ed -s !'markdown src/piblog.md' << HEREDOC | recfmt -f templates/feeditem.template | m4 >> www/feed.xml
|
||||
exec > wwww/feed.xml
|
||||
echo "<rss version=\"2.0\"><channel><title>piblog</title>"
|
||||
echo "<link>http://tilde.town/~dozens/piblog/index.html</link><description>just a little log about my raspberry pi</description><atom:link rel=\"self\" type=\"application/rss+xml\" href=\"http://tilde.town/~dozens/piblog/feed.xml\"/>"
|
||||
ed -s !'markdown src/piblog.md' << HEREDOC | recfmt -f templates/feeditem.template | m4
|
||||
/BEGIN/ka
|
||||
/END/kb
|
||||
1,'ad
|
||||
|
@ -26,7 +27,7 @@ rss:
|
|||
,w /dev/stdout
|
||||
Q
|
||||
HEREDOC
|
||||
echo '</channel></rss>' >> www/feed.xml
|
||||
echo '</channel></rss>'
|
||||
|
||||
# watch for changes
|
||||
watch:
|
||||
|
|
Loading…
Reference in New Issue