diff --git a/Makefile b/Makefile
index c6c978d..163ae5a 100644
--- a/Makefile
+++ b/Makefile
@@ -9,19 +9,17 @@ INSTALLDIR_ANSI := public_ansi/
ARTICLEDIR := articles
PANDOCDIR := pandoc
STYLEDIR := styles
-SCRIPTDIR := scripts
IMAGEDIR := images
# The name of the stylesheet. This needs to be copied to any directory containing html files that use it.
style := $(STYLEDIR)/style.css
-syntax_style := $(PANDOCDIR)/solarized.theme
# Main html template that pandoc uses to generate .html from .md files
-template_html := $(PANDOCDIR)/html-template.html
-template_ansi := $(PANDOCDIR)/ansi-template
-template_rss := $(PANDOCDIR)/rss-template.xml
+template_html := $(PANDOCDIR)/template.html
+template_ansi := $(PANDOCDIR)/template
+
# Template for extracting metadata of .md files in json format
-list_template := $(PANDOCDIR)/metadata-template.json
+list_template := $(PANDOCDIR)/meta-json-template.txt
# Location of the shark.js
shark_js := $(PANDOCDIR)/shark.js
@@ -35,10 +33,10 @@ articles_md := $(wildcard $(SRCDIR)/$(ARTICLEDIR)/*.md)
articles_html := $(patsubst $(SRCDIR)/%.md, $(BUILDDIR)/%.html, $(articles_md))
articles_ansi := $(patsubst $(SRCDIR)/%.md, $(BUILDDIR)/%, $(articles_md))
-all: $(BUILDDIR)/index.html $(BUILDDIR)/index $(BUILDDIR)/rss.xml
+all: $(BUILDDIR)/index.html $(BUILDDIR)/index
install:
- cp -r $(BUILDDIR)/index.html $(BUILDDIR)/rss.xml $(articles_html) $(STYLEDIR) $(SCRIPTDIR) $(IMAGEDIR) $(INSTALLDIR_HTML); \
+ cp -r $(BUILDDIR)/index.html $(articles_html) $(STYLEDIR) $(IMAGEDIR) $(INSTALLDIR_HTML); \
cp -r $(BUILDDIR)/index $(articles_ansi) $(INSTALLDIR_ANSI);
clean:
@@ -49,28 +47,23 @@ $(BUILDDIR):
mkdir $(BUILDDIR) $(BUILDDIR)/$(ARTICLEDIR)
$(BUILDDIR)/$(ARTICLEDIR)/%.html: $(SRCDIR)/$(ARTICLEDIR)/%.md | $(BUILDDIR)
- jq 'del(.articles[] | select(.filename == "$(patsubst %.html,%,$(notdir $@))"))' $(article_list) > articles.json.tmp; \
- mv articles.json.tmp $(article_list); \
+ jq 'del(.articles[] | select(.filename == "$(notdir $@)"))' $(article_list) > articles.json.tmp; \
+ mv ./articles.json.tmp $(article_list); \
+
# Build articles using pandoc
- pandoc $< --template $(template_html) --css $(style) --highlight-style $(syntax_style) --mathml --toc --output $@; \
+ pandoc $< --template $(template_html) --css $(style) --highlight-style zenburn --mathml --toc --output $@; \
+
# Extract metadata from .md file, append filename field to the article object.
# This is used to link to the article from index.html. Append article object to the article list.
- jq '.articles += [$(shell pandoc $< --template $(list_template) | jq '. += {"filename": "$(patsubst %.html,%,$(notdir $@))", "pubdate": "$(shell date -d $(shell pandoc $< --template $(list_template) | jq '.date') --rfc-2822)"}')]' $(article_list) > articles.json.tmp; \
- mv articles.json.tmp $(article_list);
-
+ jq '.articles += [$(shell pandoc $< --template $(list_template) | jq '. += {"filename": "$(patsubst %.html, %, $(notdir $@))"}')]' $(article_list) > articles.json.tmp; \
+ mv ./articles.json.tmp $(article_list); \
$(BUILDDIR)/$(ARTICLEDIR)/%: $(SRCDIR)/$(ARTICLEDIR)/%.md | $(BUILDDIR)
pandoc $< --template $(template_ansi) --to ansi --output $@
$(BUILDDIR)/index.html: $(SRCDIR)/index.md $(articles_html) | $(BUILDDIR)
- # Sort articles decending by date (date need to be in ISO 8601 format)
- jq '.articles |= sort_by(.date) | .articles |= reverse' ${article_list} > articles.json.tmp; \
- mv articles.json.tmp ${article_list}; \
# Build index.html with metadata injected from articles_list
- pandoc $< --template $(template_html) --css $(style) --metadata-file $(article_list) --highlight-style $(syntax_style) --mathml --toc --output $@;
+ pandoc $< --template $(template_html) --include-after-body $(shark_js) --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@; \
$(BUILDDIR)/index: $(SRCDIR)/index.md $(articles_ansi) | $(BUILDDIR)
pandoc $< --template $(template_ansi) --metadata-file $(article_list) --to ansi --output $@
-
-$(BUILDDIR)/rss.xml: $(SRCDIR)/rss.md $(articles_html) | $(BUILDDIR)
- pandoc $< --template $(template_rss) --metadata-file $(article_list) --metadata=pubdate:"$(shell jq -r '.articles[0] | .pubdate' $(article_list))" --metadata=builddate:"$(shell date --rfc-2822)" --to html --output $@
diff --git a/build/articles/latex-endeavors b/build/articles/latex-endeavors
index f6e4efd..27d3079 100644
--- a/build/articles/latex-endeavors
+++ b/build/articles/latex-endeavors
@@ -3,7 +3,7 @@
Never
- [22m[3m[39m[49m[24m[29m2026-01-09[0m
+ [22m[3m[39m[49m[24m[29m9.1.2026[0m
────────────────────
diff --git a/build/articles/latex-endeavors.html b/build/articles/latex-endeavors.html
index f756c00..6e860b1 100644
--- a/build/articles/latex-endeavors.html
+++ b/build/articles/latex-endeavors.html
@@ -1,49 +1,44 @@
-
-
+
-
-
-
-
-
- Latex Endeavors
-
-
-
-
-
-
+
+
+
+
+ Latex Endeavors
+
+
+
+
-
-
-
-
-
-
- BibLaTeX and Biber
+
+
+BibLaTeX and Biber
Biber doesn’t run
Biber doens’t run if the (fedora) package
libxcrypt-compat is missing. It will fail with the error
message
biber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
-
-
-
-
-
+
+
+
+