summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-03-16 22:16:18 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-03-16 22:16:18 -0400
commitc33de032376d7174ac0a0679e8ee9d196ad8ae79 (patch)
treef977089fd09337e0d6f243b4f6254569b1b9d225 /Makefile
parent484b23041cd22e24dab1566ada9d2e3081cc5f78 (diff)
downloadbased.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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 699807062..fc124d563 100644
--- a/Makefile
+++ b/Makefile
@@ -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/'`" \