add titleblock

This commit is contained in:
Never Gude 2026-02-05 02:08:10 +01:00
parent b63d2ebeb2
commit 0cc991a3f2
13 changed files with 118 additions and 14 deletions

View file

@ -27,7 +27,7 @@ install:
clean:
echo '{"articles": []}' > $(article_list); \
rm index.html about.html $(articles_html);
rm index.html about.html $(articles_html) $(articles_ansi);
$(articles_html): %.html: %.md
jq 'del(.articles[] | select(.filename == "$(notdir $@)"))' $(article_list) > articles.json.tmp; \
@ -42,17 +42,17 @@ $(articles_html): %.html: %.md
mv ./articles.json.tmp $(article_list); \
$(articles_ansi): %: %.md
pandoc $< --to ansi --output $@
pandoc $< --standalone --to ansi --output $@
index.html: index.md $(articles_html)
# Build index.html with metadata injected from articles_list
pandoc $< --template $(template) --include-after-body shark.js --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@; \
index: index.md $(articles_ansi)
pandoc $< --to ansi --output $@
pandoc $< --standalone --to ansi --output $@
about.html: about.md
pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@
about: about.md
pandoc $< --to ansi --output $@
pandoc $< --standalone --to ansi --output $@