From 673b2fcaa5a4029df0a03aefe8354dd54ac110aa Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 16 Mar 2021 22:25:56 -0400 Subject: [PATCH] fix atom feed too --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fc124d5..3259a93 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 '\n%s\n\n%s\n%s\n%s\n%s\n%s\n\n' \ + printf '\n%s\n\n%s\n%s\n%s\n%s\n\n\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 '\n' >> $@