summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-03-16 22:25:56 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-03-16 22:25:56 -0400
commit673b2fcaa5a4029df0a03aefe8354dd54ac110aa (patch)
tree7fb695d9bc7219d6d76f290158c7bd8134e750c7
parentc33de032376d7174ac0a0679e8ee9d196ad8ae79 (diff)
downloadbased.cooking-673b2fcaa5a4029df0a03aefe8354dd54ac110aa.tar
based.cooking-673b2fcaa5a4029df0a03aefe8354dd54ac110aa.tar.gz
based.cooking-673b2fcaa5a4029df0a03aefe8354dd54ac110aa.tar.lz
based.cooking-673b2fcaa5a4029df0a03aefe8354dd54ac110aa.tar.xz
based.cooking-673b2fcaa5a4029df0a03aefe8354dd54ac110aa.zip
fix atom feed too
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fc124d563..3259a93bc 100644
--- a/Makefile
+++ b/Makefile
@@ -183,14 +183,14 @@ blog/atom.xml: $(ARTICLES)
printf '%s ' "$$f"; \
git log -n 1 --diff-filter=A --date="format:%s %Y-%m-%dT%H:%M:%SZ" --pretty=format:'%ad %aN%n' -- "$$f"; \
done | sort -k2nr | head -n $(BLOG_FEED_MAX) | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE AUTHOR; do \
- printf '<entry>\n<title type="text">%s</title>\n<link rel="alternate" type="text/html" href="%s"/>\n<id>%s</id>\n<published>%s</published>\n<updated>%s</updated>\n<author><name>%s</name></author>\n<summary type="text">%s</summary>\n</entry>\n' \
+ printf '<entry>\n<title type="text">%s</title>\n<link rel="alternate" type="text/html" href="%s"/>\n<id>%s</id>\n<published>%s</published>\n<updated>%s</updated>\n<author><name>%s</name></author>\n<summary type="html"><![CDATA[%s]]></summary>\n</entry>\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/'`" \
"$$DATE" \
"`git log -n 1 --date="format:%Y-%m-%dT%H:%M:%SZ" --pretty=format:'%ad' -- "$$FILE"`" \
"$$AUTHOR" \
- "`tail -n+3 $$FILE`"; \
+ "`markdown < $$FILE`"; \
done >> $@
printf '</feed>\n' >> $@