diff --git a/Makefile b/Makefile
index 8a358c1..2d71560 100644
--- a/Makefile
+++ b/Makefile
@@ -169,8 +169,8 @@ blog/rss.xml: $(ARTICLES)
done | sort -k2nr | head -n $(BLOG_FEED_MAX) | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \
printf '- \n%s\n%s\n%s\n%s\n%s\n
\n' \
"`head -n 1 $$FILE | sed 's/^# //'`" \
- "$(BLOG_URL_ROOT)/`basename $$FILE`.html" \
- "$(BLOG_URL_ROOT)/`basename $$FILE`.html" \
+ "$(BLOG_URL_ROOT)`basename $$FILE | sed 's/\.md/\.html/'`" \
+ "$(BLOG_URL_ROOT)`basename $$FILE | sed 's/\.md/\.html/'`" \
"$$DATE" \
"`tail -n+3 < $$FILE`"; \
done >> $@
@@ -178,15 +178,15 @@ blog/rss.xml: $(ARTICLES)
blog/atom.xml: $(ARTICLES)
printf '\n\n%s\n%s\n%s\n\n%s\n\n' \
- "$(BLOG_TITLE)" "$(BLOG_DESCRIPTION)" "$(shell date +%Y-%m-%dT%H:%M:%SZ)" "$(BLOG_URL_ROOT)" "$(BLOG_URL_ROOT)/atom.xml" "$(BLOG_URL_ROOT)/atom.xml" > $@
+ "$(BLOG_TITLE)" "$(BLOG_DESCRIPTION)" "$(shell date +%Y-%m-%dT%H:%M:%SZ)" "$(BLOG_URL_ROOT)" "$(BLOG_URL_ROOT)atom.xml" "$(BLOG_URL_ROOT)/atom.xml" > $@
for f in $(ARTICLES); do \
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' \
"`head -n 1 $$FILE | sed 's/^# //'`" \
- "$(BLOG_URL_ROOT)/`basename $$FILE`.html" \
- "$(BLOG_URL_ROOT)/`basename $$FILE`.html" \
+ "$(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" \