diff options
author | Steven Hall <Hallzy.18@gmail.com> | 2021-03-21 14:17:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 17:17:34 -0400 |
commit | 88bf288b6f22173390115ceda6f925a56e89a3a6 (patch) | |
tree | e545986d5e4a4d5515f4ca4b349422de45176290 /Makefile | |
parent | 744e863422a52d4cc215f6b22c5944045fb9d6c5 (diff) | |
download | based.cooking-88bf288b6f22173390115ceda6f925a56e89a3a6.tar based.cooking-88bf288b6f22173390115ceda6f925a56e89a3a6.tar.gz based.cooking-88bf288b6f22173390115ceda6f925a56e89a3a6.tar.lz based.cooking-88bf288b6f22173390115ceda6f925a56e89a3a6.tar.xz based.cooking-88bf288b6f22173390115ceda6f925a56e89a3a6.zip |
Fixes duplicates on tag pages (#354) (#385)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -117,7 +117,7 @@ blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header tag_in envsubst < templates/tag_index_header.html >> $@; \ envsubst < templates/article_list_header.html >> $@; \ first=true; \ - for f in $(shell grep -FH '$*' $(TAGFILES) | sed 's,^tags/\([^:]*\):.*,$(BLOG_SRC)/\1.md,'); do \ + for f in $(shell awk '$$0 == "$*" { gsub("tags", "$(BLOG_SRC)", FILENAME); print FILENAME ".md"; nextfile; }' $(TAGFILES)); do \ printf '%s ' "$$f"; \ git log -n 1 --diff-filter=A --date="format:%s $(BLOG_DATE_FORMAT_INDEX)" --pretty=format:'%ad%n' -- "$$f"; \ done | sort | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \ |