diff --git a/Makefile b/Makefile index 163ae5a..aa78efe 100644 --- a/Makefile +++ b/Makefile @@ -47,23 +47,24 @@ $(BUILDDIR): mkdir $(BUILDDIR) $(BUILDDIR)/$(ARTICLEDIR) $(BUILDDIR)/$(ARTICLEDIR)/%.html: $(SRCDIR)/$(ARTICLEDIR)/%.md | $(BUILDDIR) - jq 'del(.articles[] | select(.filename == "$(notdir $@)"))' $(article_list) > articles.json.tmp; \ + jq 'del(.articles[] | select(.filename == "$(patsubst %.html,%,$(notdir $@))"))' $(article_list) > articles.json.tmp; \ mv ./articles.json.tmp $(article_list); \ - # Build articles using pandoc 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 $@))"}')]' $(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) --include-after-body $(shark_js) --css $(style) --metadata-file $(article_list) --highlight-style zenburn --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 $@ diff --git a/build/articles/latex-endeavors b/build/articles/latex-endeavors index 27d3079..f6e4efd 100644 --- a/build/articles/latex-endeavors +++ b/build/articles/latex-endeavors @@ -3,7 +3,7 @@ Never - 9.1.2026 + 2026-01-09 ──────────────────── diff --git a/build/articles/latex-endeavors.html b/build/articles/latex-endeavors.html index 6e860b1..7ea5cbb 100644 --- a/build/articles/latex-endeavors.html +++ b/build/articles/latex-endeavors.html @@ -5,6 +5,7 @@ + Latex Endeavors - - - - - -
-

Latex Endeavors

-

Some unintuitive quirks of Latex

-

Never

-

9.1.2026

-
-
- -
-

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
-
- -
- - - diff --git a/src/articles/random-linux-utils.md b/src/articles/random-linux-utils.md index 6b5c743..7355edf 100644 --- a/src/articles/random-linux-utils.md +++ b/src/articles/random-linux-utils.md @@ -2,7 +2,7 @@ title: Random linux utilities subtitle: Neat things I picked up along the way author: Never -date: 25.7.2025 +date: 2025-07-25 summary: Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things. --- diff --git a/src/articles/rsync-android b/src/articles/rsync-android deleted file mode 100644 index 27d3079..0000000 --- a/src/articles/rsync-android +++ /dev/null @@ -1,18 +0,0 @@ - Latex Endeavors - Some unintuitive quirks of Latex - - Never - - 9.1.2026 - - ──────────────────── - -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 -]8;;\ \ No newline at end of file diff --git a/src/articles/rsync-android.html b/src/articles/rsync-android.html deleted file mode 100644 index df33063..0000000 --- a/src/articles/rsync-android.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - Latex Endeavors - - - - - - - -
-

Latex Endeavors

-

Some unintuitive quirks of Latex

-

Never

-

9.1.2026

-
-
- -
-

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
-
- -
- - - diff --git a/src/articles/rsync-android.md b/src/articles/rsync-android.md index 97a63f4..c3e532e 100644 --- a/src/articles/rsync-android.md +++ b/src/articles/rsync-android.md @@ -1,7 +1,7 @@ --- title: Using rsync on Android to syncronise my Music library author: Never -date: 12.01.2026 +date: 2026-01-12 summary: As Spotify is getting enshittified by capitalism, keeping a music library is kind of essential. Here I use rsync to syncronise my library with my Android smartphone. ---