diff options
author | Sylvain Gauthier <s94.gauthier@laposte.net> | 2021-03-14 19:19:24 +1100 |
---|---|---|
committer | Sylvain Gauthier <s94.gauthier@laposte.net> | 2021-03-15 10:36:14 +1100 |
commit | db9156fb36bc887fe419595129d8ae235090ba83 (patch) | |
tree | 058b2df379266d53df982d44f648eb498c5f79c3 /Makefile | |
parent | 5da3d4fa492b9b33a88e1cbdffc674c45debe74b (diff) | |
download | based.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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" \ |