summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSylvain Gauthier <s94.gauthier@laposte.net>2021-03-14 19:19:24 +1100
committerSylvain Gauthier <s94.gauthier@laposte.net>2021-03-15 10:36:14 +1100
commitdb9156fb36bc887fe419595129d8ae235090ba83 (patch)
tree058b2df379266d53df982d44f648eb498c5f79c3 /Makefile
parent5da3d4fa492b9b33a88e1cbdffc674c45debe74b (diff)
downloadbased.cooking-db9156fb36bc887fe419595129d8ae235090ba83.tar
based.cooking-db9156fb36bc887fe419595129d8ae235090ba83.tar.gz
based.cooking-db9156fb36bc887fe419595129d8ae235090ba83.tar.lz
based.cooking-db9156fb36bc887fe419595129d8ae235090ba83.tar.xz
based.cooking-db9156fb36bc887fe419595129d8ae235090ba83.zip
sort articles by alphabetical order instead of date of publication
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e7574dc60..f10922484 100644
--- a/Makefile
+++ b/Makefile
@@ -85,7 +85,7 @@ blog/index.html: $(ARTICLES) $(TAGFILES) $(addprefix templates/,$(addsuffix .htm
for f in $(ARTICLES); 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 -k2nr | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \
+ done | sort | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \
"$$first" || envsubst < templates/article_separator.html; \
URL="`printf '%s' "\$$FILE" | sed 's,^$(BLOG_SRC)/\(.*\).md,\1,'`.html" \
DATE="$$DATE" \
@@ -119,7 +119,7 @@ blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header tag_in
for f in $(shell grep -FH '$*' $(TAGFILES) | sed 's,^tags/\([^:]*\):.*,$(BLOG_SRC)/\1.md,'); 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 -k2nr | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \
+ done | sort | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \
"$$first" || envsubst < templates/article_separator.html; \
URL="`printf '%s' "\$$FILE" | sed 's,^$(BLOG_SRC)/\(.*\).md,\1,'`.html" \
DATE="$$DATE" \