mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2024-11-17 03:25:33 +00:00
fix atom feed too
This commit is contained in:
parent
c33de03237
commit
673b2fcaa5
4
Makefile
4
Makefile
@ -183,14 +183,14 @@ blog/atom.xml: $(ARTICLES)
|
|||||||
printf '%s ' "$$f"; \
|
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"; \
|
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 \
|
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/^# //'`" \
|
"`head -n 1 $$FILE | sed 's/^# //'`" \
|
||||||
"$(BLOG_URL_ROOT)`basename $$FILE | sed 's/\.md/\.html/'`" \
|
"$(BLOG_URL_ROOT)`basename $$FILE | sed 's/\.md/\.html/'`" \
|
||||||
"$(BLOG_URL_ROOT)`basename $$FILE | sed 's/\.md/\.html/'`" \
|
"$(BLOG_URL_ROOT)`basename $$FILE | sed 's/\.md/\.html/'`" \
|
||||||
"$$DATE" \
|
"$$DATE" \
|
||||||
"`git log -n 1 --date="format:%Y-%m-%dT%H:%M:%SZ" --pretty=format:'%ad' -- "$$FILE"`" \
|
"`git log -n 1 --date="format:%Y-%m-%dT%H:%M:%SZ" --pretty=format:'%ad' -- "$$FILE"`" \
|
||||||
"$$AUTHOR" \
|
"$$AUTHOR" \
|
||||||
"`tail -n+3 $$FILE`"; \
|
"`markdown < $$FILE`"; \
|
||||||
done >> $@
|
done >> $@
|
||||||
printf '</feed>\n' >> $@
|
printf '</feed>\n' >> $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user