This commit is contained in:
Never Gude 2026-02-12 04:10:35 +01:00
parent dddf6082c7
commit 3ca1685ec6
22 changed files with 108 additions and 77 deletions

View file

@ -15,11 +15,11 @@ IMAGEDIR := images
style := $(STYLEDIR)/style.css style := $(STYLEDIR)/style.css
# Main html template that pandoc uses to generate .html from .md files # Main html template that pandoc uses to generate .html from .md files
template_html := $(PANDOCDIR)/template.html template_html := $(PANDOCDIR)/html-template.html
template_ansi := $(PANDOCDIR)/template template_ansi := $(PANDOCDIR)/ansi-template
template_rss := $(PANDOCDIR)/rss-template.xml template_rss := $(PANDOCDIR)/rss-template.xml
# Template for extracting metadata of .md files in json format # Template for extracting metadata of .md files in json format
list_template := $(PANDOCDIR)/meta-json-template.txt list_template := $(PANDOCDIR)/metadata-template.json
# Location of the shark.js # Location of the shark.js
shark_js := $(PANDOCDIR)/shark.js shark_js := $(PANDOCDIR)/shark.js
@ -33,10 +33,10 @@ articles_md := $(wildcard $(SRCDIR)/$(ARTICLEDIR)/*.md)
articles_html := $(patsubst $(SRCDIR)/%.md, $(BUILDDIR)/%.html, $(articles_md)) articles_html := $(patsubst $(SRCDIR)/%.md, $(BUILDDIR)/%.html, $(articles_md))
articles_ansi := $(patsubst $(SRCDIR)/%.md, $(BUILDDIR)/%, $(articles_md)) articles_ansi := $(patsubst $(SRCDIR)/%.md, $(BUILDDIR)/%, $(articles_md))
all: $(BUILDDIR)/index.html $(BUILDDIR)/index $(BUILDDIR)/rssfeed.xml all: $(BUILDDIR)/index.html $(BUILDDIR)/index $(BUILDDIR)/rss.xml
install: install:
cp -r $(BUILDDIR)/index.html $(BUILDDIR)/rssfeed.xml $(articles_html) $(STYLEDIR) $(IMAGEDIR) $(INSTALLDIR_HTML); \ cp -r $(BUILDDIR)/index.html $(BUILDDIR)/rss.xml $(articles_html) $(STYLEDIR) $(IMAGEDIR) $(INSTALLDIR_HTML); \
cp -r $(BUILDDIR)/index $(articles_ansi) $(INSTALLDIR_ANSI); cp -r $(BUILDDIR)/index $(articles_ansi) $(INSTALLDIR_ANSI);
clean: clean:
@ -53,7 +53,6 @@ $(BUILDDIR)/$(ARTICLEDIR)/%.html: $(SRCDIR)/$(ARTICLEDIR)/%.md | $(BUILDDIR)
pandoc $< --template $(template_html) --css $(style) --highlight-style zenburn --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. # 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. # 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; \ 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); mv articles.json.tmp $(article_list);
@ -71,5 +70,5 @@ $(BUILDDIR)/index.html: $(SRCDIR)/index.md $(articles_html) | $(BUILDDIR)
$(BUILDDIR)/index: $(SRCDIR)/index.md $(articles_ansi) | $(BUILDDIR) $(BUILDDIR)/index: $(SRCDIR)/index.md $(articles_ansi) | $(BUILDDIR)
pandoc $< --template $(template_ansi) --metadata-file $(article_list) --to ansi --output $@ pandoc $< --template $(template_ansi) --metadata-file $(article_list) --to ansi --output $@
$(BUILDDIR)/rssfeed.xml: $(SRCDIR)/rssfeed.md $(articles_html) | $(BUILDDIR) $(BUILDDIR)/rss.xml: $(SRCDIR)/rss.md $(articles_html) | $(BUILDDIR)
pandoc $< --template $(template_rss) --metadata-file $(article_list) --metadata=builddate:"$(shell date --rfc-2822)" --to html --output $@ 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 $@

View file

@ -29,7 +29,8 @@
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
<header id="title-block-header"> <header id="title-block-header">
<h1 class="title">Latex Endeavors</h1> <h1 class="title">Latex Endeavors</h1>

View file

@ -93,7 +93,8 @@
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
<header id="title-block-header"> <header id="title-block-header">
<h1 class="title">Random linux utilities</h1> <h1 class="title">Random linux utilities</h1>

View file

@ -93,7 +93,8 @@
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
<header id="title-block-header"> <header id="title-block-header">
<h1 class="title">Using rsync on Android to syncronise my Music <h1 class="title">Using rsync on Android to syncronise my Music

View file

@ -27,7 +27,8 @@
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
<header id="title-block-header"> <header id="title-block-header">
<h1 class="title">Home</h1> <h1 class="title">Home</h1>

View file

@ -1,17 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>nevereverever.de RSS Feed</title> <title>nevereverever.de</title>
<link>https://nevereverever.de/eh/eh/eh/eh-eh</link> <link>https://nevereverever.de/eh/eh/eh/eh-eh</link>
<description>RSS of my published articles</description> <description>Here I post random stuff.</description>
<language>en-us</language> <language>en-us</language>
<pubDate>Wed, 11 Feb 2026 23:26:41 +0100</pubDate> <pubDate>Mon, 12 Jan 2026 00:00:00 +0100</pubDate>
<lastBuildDate>Thu, 12 Feb 2026 02:32:53 +0100</lastBuildDate> <lastBuildDate>Thu, 12 Feb 2026 04:03:34 +0100</lastBuildDate>
<docs>https://www.rssboard.org/rss-specification</docs> <docs>https://www.rssboard.org/rss-specification</docs>
<generator>pandoc</generator> <generator>pandoc</generator>
<managingEditor>Never</managingEditor> <managingEditor>n.gude@posteo.de (Never)</managingEditor>
<webMaster>Never</webMaster> <webMaster>n.gude@poster.de (Never)</webMaster>
<atom:link href="https://www.rssboard.org/files/sample-rss-2.xml" rel="self" type="application/rss+xml"/>
<item> <item>
<title>Using rsync on Android to syncronise my Music library</title> <title>Using rsync on Android to syncronise my Music library</title>
<author>n.gude@posteo.de (Never)</author> <author>n.gude@posteo.de (Never)</author>
@ -34,7 +33,7 @@ solutions I have encountered.</description>
</item> </item>
<item> <item>
<title>Random linux utilities</title> <title>Random linux utilities</title>
<author> (Never)</author> <author>n.gude@posteo.de (Never)</author>
<link>https://nevereverever.de/eh/eh/eh/eh-eh/random-linux-utils.html</link> <link>https://nevereverever.de/eh/eh/eh/eh-eh/random-linux-utils.html</link>
<description>Tricks and tools I learned about, while tweaking my Linux <description>Tricks and tools I learned about, while tweaking my Linux
sytem or trying to do productive things.</description> sytem or trying to do productive things.</description>

View file

@ -37,7 +37,8 @@ $endif$
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
$for(include-before)$ $for(include-before)$
$include-before$ $include-before$

View file

@ -27,13 +27,14 @@ $endif$
$if(webmaster)$ $if(webmaster)$
<webMaster>$webmaster$</webMaster> <webMaster>$webmaster$</webMaster>
$endif$ $endif$
<atom:link href="https://www.rssboard.org/files/sample-rss-2.xml" rel="self" type="application/rss+xml"/>
$for(articles)$ $for(articles)$
<item> <item>
$if(articles.title)$ $if(articles.title)$
<title>$articles.title$</title> <title>$articles.title$</title>
$endif$ $endif$
<author>$if(articles.email)$$articles.email$$endif$$if(articles.author)$ ($articles.author$)$endif$</author> $if(articles.email)$
<author>$articles.email$$if(articles.author)$ ($articles.author$)$endif$</author>
$endif$
$if(articles.filename)$ $if(articles.filename)$
<link>$link$/$articles.filename$.html</link> <link>$link$/$articles.filename$.html</link>
$endif$ $endif$

View file

@ -27,7 +27,8 @@
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
<header id="title-block-header"> <header id="title-block-header">
<h1 class="title">Home</h1> <h1 class="title">Home</h1>

View file

@ -29,7 +29,8 @@
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
<header id="title-block-header"> <header id="title-block-header">
<h1 class="title">Latex Endeavors</h1> <h1 class="title">Latex Endeavors</h1>

View file

@ -93,7 +93,8 @@
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
<header id="title-block-header"> <header id="title-block-header">
<h1 class="title">Random linux utilities</h1> <h1 class="title">Random linux utilities</h1>

View file

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>nevereverever.de</title>
<link>https://nevereverever.de/eh/eh/eh/eh-eh</link>
<description>Here I post random stuff.</description>
<language>en-us</language>
<pubDate>Mon, 12 Jan 2026 00:00:00 +0100</pubDate>
<lastBuildDate>Thu, 12 Feb 2026 04:03:34 +0100</lastBuildDate>
<docs>https://www.rssboard.org/rss-specification</docs>
<generator>pandoc</generator>
<managingEditor>n.gude@posteo.de (Never)</managingEditor>
<webMaster>n.gude@poster.de (Never)</webMaster>
<item>
<title>Using rsync on Android to syncronise my Music library</title>
<author>n.gude@posteo.de (Never)</author>
<link>https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html</link>
<description>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.</description>
<pubDate>Mon, 12 Jan 2026 00:00:00 +0100</pubDate>
<guid>rsync-android</guid>
</item>
<item>
<title>Latex Endeavors</title>
<author>n.gude@posteo.de (Never)</author>
<link>https://nevereverever.de/eh/eh/eh/eh-eh/latex-endeavors.html</link>
<description>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.</description>
<pubDate>Fri, 09 Jan 2026 00:00:00 +0100</pubDate>
<guid>latex-endeavors</guid>
</item>
<item>
<title>Random linux utilities</title>
<author>n.gude@posteo.de (Never)</author>
<link>https://nevereverever.de/eh/eh/eh/eh-eh/random-linux-utils.html</link>
<description>Tricks and tools I learned about, while tweaking my Linux
sytem or trying to do productive things.</description>
<pubDate>Fri, 25 Jul 2025 00:00:00 +0200</pubDate>
<guid>random-linux-utils</guid>
</item>
</channel>
</rss>

View file

@ -5,13 +5,12 @@
<link>https://nevereverever.de/eh/eh/eh/eh-eh</link> <link>https://nevereverever.de/eh/eh/eh/eh-eh</link>
<description>RSS of my published articles</description> <description>RSS of my published articles</description>
<language>en-us</language> <language>en-us</language>
<pubDate>Wed, 11 Feb 2026 23:26:41 +0100</pubDate> <pubDate>Mon, 12 Jan 2026 00:00:00 +0100</pubDate>
<lastBuildDate>Thu, 12 Feb 2026 02:32:53 +0100</lastBuildDate> <lastBuildDate>Thu, 12 Feb 2026 02:45:55 +0100</lastBuildDate>
<docs>https://www.rssboard.org/rss-specification</docs> <docs>https://www.rssboard.org/rss-specification</docs>
<generator>pandoc</generator> <generator>pandoc</generator>
<managingEditor>Never</managingEditor> <managingEditor>Never</managingEditor>
<webMaster>Never</webMaster> <webMaster>Never</webMaster>
<atom:link href="https://www.rssboard.org/files/sample-rss-2.xml" rel="self" type="application/rss+xml"/>
<item> <item>
<title>Using rsync on Android to syncronise my Music library</title> <title>Using rsync on Android to syncronise my Music library</title>
<author>n.gude@posteo.de (Never)</author> <author>n.gude@posteo.de (Never)</author>
@ -34,7 +33,7 @@ solutions I have encountered.</description>
</item> </item>
<item> <item>
<title>Random linux utilities</title> <title>Random linux utilities</title>
<author> (Never)</author> <author>n.gude@posteo.de (Never)</author>
<link>https://nevereverever.de/eh/eh/eh/eh-eh/random-linux-utils.html</link> <link>https://nevereverever.de/eh/eh/eh/eh-eh/random-linux-utils.html</link>
<description>Tricks and tools I learned about, while tweaking my Linux <description>Tricks and tools I learned about, while tweaking my Linux
sytem or trying to do productive things.</description> sytem or trying to do productive things.</description>

View file

@ -93,7 +93,8 @@
<body> <body>
<canvas id="tv-screen"></canvas> <canvas id="tv-screen"></canvas>
<header id="page-header"> <header id="page-header">
<ul><li><a href="index.html">Home</a></li></ul> <a href="index.html">Home</a>
<a href="rss.xml">RSS Feed</a>
</header> </header>
<header id="title-block-header"> <header id="title-block-header">
<h1 class="title">Using rsync on Android to syncronise my Music <h1 class="title">Using rsync on Android to syncronise my Music

View file

@ -56,35 +56,26 @@ body {
} }
#page-header { #page-header {
padding: 4pt;
display: flex; display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between; justify-content: space-between;
text-align: left;
border: 4pt ridge var(--border);
background: url("images/shark-top-small.png"); background: url("images/shark-top-small.png");
background-size: contain; background-size: contain;
border: 4pt ridge var(--border);
} }
#page-header li { #page-header a {
list-style: none; padding: 4pt;
display: inline-block; color: var(--foreground);
background-color: var(--button-background);
border: 2pt outset var(--button-border);
text-decoration: none;
} }
#page-header a:active { #page-header a:active {
border: 2pt inset var(--button-border) border: 2pt inset var(--button-border)
} }
#page-header a {
color: var(--foreground);
text-decoration: none;
margin: 4pt;
padding: 4pt;
border: 2pt outset var(--button-border);
background-color: var(--button-background)
}
#page-header ul,
#articles ul { #articles ul {
padding-left: 0; padding-left: 0;
} }

View file

@ -22,6 +22,7 @@
{ {
"author": "Never", "author": "Never",
"date": "2025-07-25", "date": "2025-07-25",
"email": "n.gude@posteo.de",
"subtitle": "Neat things I picked up along the way", "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.", "summary": "Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things.",
"title": "Random linux utilities", "title": "Random linux utilities",

View file

@ -2,6 +2,7 @@
title: Random linux utilities title: Random linux utilities
subtitle: Neat things I picked up along the way subtitle: Neat things I picked up along the way
author: Never author: Never
email: n.gude@posteo.de
date: 2025-07-25 date: 2025-07-25
summary: Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things. summary: Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things.
--- ---

8
src/rss.md Normal file
View file

@ -0,0 +1,8 @@
---
title: nevereverever.de
link: https://nevereverever.de/eh/eh/eh/eh-eh
description: Here I post random stuff.
lang: en-us
editor: n.gude@posteo.de (Never)
webmaster: n.gude@poster.de (Never)
---

View file

@ -1,9 +0,0 @@
---
title: nevereverever.de RSS Feed
link: https://nevereverever.de/eh/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
---

View file

@ -25,10 +25,7 @@
html { html {
color: var(--foreground); color: var(--foreground);
/*background: url("recursion.gif");*/
background: var(--html-background); background: var(--html-background);
background-repeat: repeat-y;
background-size: cover;
font-family: serif; font-family: serif;
font-size: 14pt; font-size: 14pt;
} }
@ -56,35 +53,26 @@ body {
} }
#page-header { #page-header {
padding: 4pt;
display: flex; display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between; justify-content: space-between;
text-align: left;
border: 4pt ridge var(--border);
background: url("images/shark-top-small.png"); background: url("images/shark-top-small.png");
background-size: contain; background-size: contain;
border: 4pt ridge var(--border);
} }
#page-header li { #page-header a {
list-style: none; padding: 4pt;
display: inline-block; color: var(--foreground);
background-color: var(--button-background);
border: 2pt outset var(--button-border);
text-decoration: none;
} }
#page-header a:active { #page-header a:active {
border: 2pt inset var(--button-border) border: 2pt inset var(--button-border)
} }
#page-header a {
color: var(--foreground);
text-decoration: none;
margin: 4pt;
padding: 4pt;
border: 2pt outset var(--button-border);
background-color: var(--button-background)
}
#page-header ul,
#articles ul { #articles ul {
padding-left: 0; padding-left: 0;
} }