change comments for rss feed and switch rsync to quitet output

This commit is contained in:
Kosaki 2020-07-18 23:31:23 +02:00
parent ab3b9a2f19
commit 3e7021845c

View File

@ -49,10 +49,8 @@ html_entry() {
}
rss_entry() {
# The content is the output minus the first line
# (which would otherwise be a redundant title in most rss readers)
# and with escaped html.
# The sed expression is stolen from https://stackoverflow.com/questions/12873682/12873723#12873723
# this is made to represent what heise.de has done with
# their rss/atom feeds and doesn't need any escaping
output_rss " <entry>
<title type=\"text\">$1</title>
<published>$(date --iso-8601=seconds -d $4)</published>
@ -66,7 +64,6 @@ $(grep -h '^<p>' "dist/$2" | head -n 1 | sed 's/<p>//;s/<\/p>//;/<!--/d;s/^/
$(pandoc $3 | sed '/<!--/d;s/^/ /')]]>
</content>
</entry>"
# $(tail -n+2 "$2" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')
}
create_entry() {
@ -100,7 +97,7 @@ has_updates() {
cd /home/lucy/blog-content/
rm -R dist/*
rsync --delete -avxt static/ dist/
rsync -q --delete -avxt static/ dist/
add_header
ls -lr src/posts/*.md | tail -n+1 | while read f; do create_entry $f; done
ls -l src/*.md | tail -n+1 | while read f; do convert_static $f; done