diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-03-16 22:16:18 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2021-03-16 22:16:18 -0400 |
commit | c33de032376d7174ac0a0679e8ee9d196ad8ae79 (patch) | |
tree | f977089fd09337e0d6f243b4f6254569b1b9d225 | |
parent | 484b23041cd22e24dab1566ada9d2e3081cc5f78 (diff) | |
download | based.cooking-c33de032376d7174ac0a0679e8ee9d196ad8ae79.tar based.cooking-c33de032376d7174ac0a0679e8ee9d196ad8ae79.tar.gz based.cooking-c33de032376d7174ac0a0679e8ee9d196ad8ae79.tar.lz based.cooking-c33de032376d7174ac0a0679e8ee9d196ad8ae79.tar.xz based.cooking-c33de032376d7174ac0a0679e8ee9d196ad8ae79.zip |
CDATA for html rss
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -167,7 +167,7 @@ blog/rss.xml: $(ARTICLES) printf '%s ' "$$f"; \ git log -n 1 --diff-filter=A --date="format:%s %a, %d %b %Y %H:%M:%S %z" --pretty=format:'%ad%n' -- "$$f"; \ done | sort -k2nr | head -n $(BLOG_FEED_MAX) | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \ - printf '<item>\n<title>%s</title>\n<link>%s</link>\n<guid>%s</guid>\n<pubDate>%s</pubDate>\n<description>%s</description>\n</item>\n' \ + printf '<item>\n<title>%s</title>\n<link>%s</link>\n<guid>%s</guid>\n<pubDate>%s</pubDate>\n<description><![CDATA[%s]]></description>\n</item>\n' \ "`head -n 1 $$FILE | sed 's/^# //'`" \ "$(BLOG_URL_ROOT)`basename $$FILE | sed 's/\.md/\.html/'`" \ "$(BLOG_URL_ROOT)`basename $$FILE | sed 's/\.md/\.html/'`" \ |