mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2024-11-28 00:15:43 +00:00
add taglist function
This commit is contained in:
parent
5708338d4a
commit
81ee1e91c4
5
Makefile
5
Makefile
@ -16,7 +16,7 @@ BLOG_FEEDS ?= rss atom
|
|||||||
BLOG_SRC ?= articles
|
BLOG_SRC ?= articles
|
||||||
|
|
||||||
|
|
||||||
.PHONY: help init build deploy clean
|
.PHONY: help init build deploy clean taglist
|
||||||
|
|
||||||
ARTICLES = $(shell git ls-tree HEAD --name-only -- $(BLOG_SRC)/ 2>/dev/null)
|
ARTICLES = $(shell git ls-tree HEAD --name-only -- $(BLOG_SRC)/ 2>/dev/null)
|
||||||
TAGFILES = $(patsubst $(BLOG_SRC)/%.md,tags/%,$(ARTICLES))
|
TAGFILES = $(patsubst $(BLOG_SRC)/%.md,tags/%,$(ARTICLES))
|
||||||
@ -184,3 +184,6 @@ blog/atom.xml: $(ARTICLES)
|
|||||||
"`sed -n '1d;/^$$/{2{d;b};q};p' < $$FILE`"; \
|
"`sed -n '1d;/^$$/{2{d;b};q};p' < $$FILE`"; \
|
||||||
done >> $@
|
done >> $@
|
||||||
printf '</feed>\n' >> $@
|
printf '</feed>\n' >> $@
|
||||||
|
|
||||||
|
taglist:
|
||||||
|
grep -RIh '^;tags:' src | cut -d' ' -f2- | tr ' ' '\n' | sort | uniq
|
||||||
|
Loading…
Reference in New Issue
Block a user