Revert escaping of feed content
This results in double-escaped content since lowdown(1) already sufficiently escapes the HTML. Escaping was not actually necessary, and the feed is valid without this.
This commit is contained in:
parent
ad6cc3933f
commit
91b24a20d6
4
sbs
4
sbs
|
@ -158,7 +158,7 @@ genfeed()
|
||||||
printf "\t\t<link href=\"%s%s/%s\" />\n" "$siteURL" "$subDir" "$fileName"
|
printf "\t\t<link href=\"%s%s/%s\" />\n" "$siteURL" "$subDir" "$fileName"
|
||||||
printf "\t\t<id>%s%s/%s</id>\n" "$siteURL" "$subDir" "$fileName"
|
printf "\t\t<id>%s%s/%s</id>\n" "$siteURL" "$subDir" "$fileName"
|
||||||
printf "\t\t<updated>%s</updated>\n" "${date}T00:00:00Z"
|
printf "\t\t<updated>%s</updated>\n" "${date}T00:00:00Z"
|
||||||
printf "\t\t<content type=\"html\"><![CDATA[\n%s\n\t\t]]></content>\n" "$(lowdown $buildOptions "$file" | sed 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g')"
|
printf "\t\t<content type=\"html\"><![CDATA[\n%s\n\t\t]]></content>\n" "$(lowdown $buildOptions "$file")"
|
||||||
printf "\t</entry>\n\n"
|
printf "\t</entry>\n\n"
|
||||||
} >> static/feed.xml
|
} >> static/feed.xml
|
||||||
done
|
done
|
||||||
|
@ -320,7 +320,7 @@ case "$1" in
|
||||||
push
|
push
|
||||||
;;
|
;;
|
||||||
"version")
|
"version")
|
||||||
echo "v1.2.0" ;
|
echo "v1.2.1" ;
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown command. See sbs(1) for documentation."
|
echo "Unknown command. See sbs(1) for documentation."
|
||||||
|
|
Loading…
Reference in New Issue