From 1c4a21c62c434781409bfdb868e3bd7fd83263f4 Mon Sep 17 00:00:00 2001 From: Never Gude Date: Thu, 11 Dec 2025 00:46:46 +0100 Subject: [PATCH] fix link generation --- public_html/eh/eh/eh/eh-eh/Makefile | 6 +- public_html/eh/eh/eh/eh-eh/about.html | 4 +- public_html/eh/eh/eh/eh-eh/article-1.html | 7 +- public_html/eh/eh/eh/eh-eh/article-2.html | 144 ++++++++++++++++++ public_html/eh/eh/eh/eh-eh/article.json.tmp | 1 + public_html/eh/eh/eh/eh-eh/article.json.tmp.0 | 1 + public_html/eh/eh/eh/eh-eh/article.json.tmp.1 | 8 + public_html/eh/eh/eh/eh-eh/articles.json | 16 +- .../articles/{article-1.md => article-2.md} | 0 public_html/eh/eh/eh/eh-eh/index.html | 19 +-- public_html/eh/eh/eh/eh-eh/pandoc/style.css | 79 ++++++++-- .../eh/eh/eh/eh-eh/pandoc/template.html | 4 +- .../eh/eh/eh/eh-eh/random-linux-utils.html | 7 +- 13 files changed, 252 insertions(+), 44 deletions(-) create mode 100644 public_html/eh/eh/eh/eh-eh/article-2.html create mode 100644 public_html/eh/eh/eh/eh-eh/article.json.tmp create mode 100644 public_html/eh/eh/eh/eh-eh/article.json.tmp.0 create mode 100644 public_html/eh/eh/eh/eh-eh/article.json.tmp.1 rename public_html/eh/eh/eh/eh-eh/articles/{article-1.md => article-2.md} (100%) diff --git a/public_html/eh/eh/eh/eh-eh/Makefile b/public_html/eh/eh/eh/eh-eh/Makefile index eeb3cf7..0c3b7cb 100644 --- a/public_html/eh/eh/eh/eh-eh/Makefile +++ b/public_html/eh/eh/eh/eh-eh/Makefile @@ -15,8 +15,10 @@ clean: $(articles): %.html: %.md pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $(notdir $@); \ - jq '.articles += [$(shell pandoc $< --template $(list_template))]' $(article_list) > articles.json.tmp; - cat ./articles.json.tmp > articles.json; + pandoc $< --template $(list_template) > article.json.tmp.0; \ + jq '. += {"filename": "$(notdir $@)"}' article.json.tmp.0 > article.json.tmp.1; \ + jq '.articles += [$(shell cat article.json.tmp.1)]' $(article_list) > articles.json.tmp; \ + cat ./articles.json.tmp > ./articles.json; \ rm ./articles.json.tmp; index.html: index.md $(articles) diff --git a/public_html/eh/eh/eh/eh-eh/about.html b/public_html/eh/eh/eh/eh-eh/about.html index 7dd2873..a3a2409 100644 --- a/public_html/eh/eh/eh/eh-eh/about.html +++ b/public_html/eh/eh/eh/eh-eh/about.html @@ -26,7 +26,7 @@