diff --git a/Makefile b/Makefile index aa78efe..cae9591 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ style := $(STYLEDIR)/style.css # Main html template that pandoc uses to generate .html from .md files template_html := $(PANDOCDIR)/template.html template_ansi := $(PANDOCDIR)/template - +template_rss := $(PANDOCDIR)/rss-template.xml # Template for extracting metadata of .md files in json format list_template := $(PANDOCDIR)/meta-json-template.txt @@ -33,7 +33,7 @@ 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 +all: $(BUILDDIR)/index.html $(BUILDDIR)/index $(BUILDDIR)/rssfeed.xml install: cp -r $(BUILDDIR)/index.html $(articles_html) $(STYLEDIR) $(IMAGEDIR) $(INSTALLDIR_HTML); \ @@ -48,13 +48,15 @@ $(BUILDDIR): $(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); \ + 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 $@))", "pubdate": "$(shell date -d $(shell pandoc $< --template $(list_template) | jq '.date') --rfc-2822)"}')]' $(article_list) > articles.json.tmp; \ + mv articles.json.tmp $(article_list); + $(BUILDDIR)/$(ARTICLEDIR)/%: $(SRCDIR)/$(ARTICLEDIR)/%.md | $(BUILDDIR) pandoc $< --template $(template_ansi) --to ansi --output $@ @@ -62,9 +64,13 @@ $(BUILDDIR)/$(ARTICLEDIR)/%: $(SRCDIR)/$(ARTICLEDIR)/%.md | $(BUILDDIR) $(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}; \ + 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 $@; $(BUILDDIR)/index: $(SRCDIR)/index.md $(articles_ansi) | $(BUILDDIR) pandoc $< --template $(template_ansi) --metadata-file $(article_list) --to ansi --output $@ + +$(BUILDDIR)/rssfeed.xml: $(SRCDIR)/rssfeed.md $(articles_html) | $(BUILDDIR) + + pandoc $< --template $(template_rss) --metadata-file $(article_list) --to html --output $@ diff --git a/build/rssfeed.xml b/build/rssfeed.xml new file mode 100644 index 0000000..c49db4e --- /dev/null +++ b/build/rssfeed.xml @@ -0,0 +1,41 @@ + + + +nevereverever.de RSS Feed +https://nevereverever.de/eh/eh/eh-eh +RSS of my published articles +en-us +Wed, 11 Feb 2026 23:26:41 +0100 +https://www.rssboard.org/rss-specification +pandoc +Never +Never + + +Using rsync on Android to syncronise my Music library +https://nevereverever.de/eh/eh/eh-eh/rsync-android.html +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. +Mon, 12 Jan 2026 00:00:00 +0100 +rsync-android + + +Latex Endeavors +https://nevereverever.de/eh/eh/eh-eh/latex-endeavors.html +Latex undoubtedly has some quirks. Some of them have a +rather unintuitive solution. In this article I cover some quirks and +solutions I have encountered. +Fri, 09 Jan 2026 00:00:00 +0100 +latex-endeavors + + +Random linux utilities +https://nevereverever.de/eh/eh/eh-eh/random-linux-utils.html +Tricks and tools I learned about, while tweaking my Linux +sytem or trying to do productive things. +Fri, 25 Jul 2025 00:00:00 +0200 +random-linux-utils + + + diff --git a/pandoc/rss-template.xml b/pandoc/rss-template.xml new file mode 100644 index 0000000..b097204 --- /dev/null +++ b/pandoc/rss-template.xml @@ -0,0 +1,51 @@ + + + +$if(title)$ +$title$ +$endif$ +$if(link)$ +$link$ +$endif$ +$if(description)$ +$description$ +$endif$ +$if(lang)$ +$lang$ +$endif$ +$if(pubdate)$ +$pubdate$ +$endif$ +$if(builddate)$ +$builddate$ +$endif$ +https://www.rssboard.org/rss-specification +pandoc +$if(editor)$ +$editor$ +$endif$ +$if(webmaster)$ +$webmaster$ +$endif$ + +$for(articles)$ + +$if(articles.title)$ +$articles.title$ +$endif$ +$if(articles.filename)$ +$link$/$articles.filename$.html +$endif$ +$if(articles.summary)$ +$articles.summary$ +$endif$ +$if(articles.date)$ +$articles.pubdate$ +$endif$ +$if(articles.filename)$ +$articles.filename$ +$endif$ + +$endfor$ + + diff --git a/src/articles.json b/src/articles.json index e543dd1..5cfcabc 100644 --- a/src/articles.json +++ b/src/articles.json @@ -5,7 +5,8 @@ "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.", "title": "Using rsync on Android to syncronise my Music library", - "filename": "rsync-android" + "filename": "rsync-android", + "pubdate": "Mon, 12 Jan 2026 00:00:00 +0100" }, { "author": "Never", @@ -13,7 +14,8 @@ "subtitle": "Some unintuitive quirks of Latex", "summary": "Latex undoubtedly has some quirks. Some of them have a rather unintuitive solution. In this article I cover some quirks and solutions I have encountered.", "title": "Latex Endeavors", - "filename": "latex-endeavors" + "filename": "latex-endeavors", + "pubdate": "Fri, 09 Jan 2026 00:00:00 +0100" }, { "author": "Never", @@ -21,7 +23,8 @@ "subtitle": "Neat things I picked up along the way", "summary": "Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things.", "title": "Random linux utilities", - "filename": "random-linux-utils" + "filename": "random-linux-utils", + "pubdate": "Fri, 25 Jul 2025 00:00:00 +0200" } ] } diff --git a/src/rssfeed.md b/src/rssfeed.md new file mode 100644 index 0000000..749006a --- /dev/null +++ b/src/rssfeed.md @@ -0,0 +1,9 @@ +--- +title: nevereverever.de RSS Feed +link: https://nevereverever.de/eh/eh/eh-eh +description: RSS of my published articles +lang: en-us +pubdate: Wed, 11 Feb 2026 23:26:41 +0100 +editor: Never +webmaster: Never +---