90s-style #1

Merged
never merged 25 commits from 90s-style into main 2026-02-11 19:06:32 +01:00
10 changed files with 94 additions and 42 deletions
Showing only changes of commit 7d71c4bfda - Show all commits

View file

@ -1,12 +0,0 @@
]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html\Rsync Android]8;;\
Stuff
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$
]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.htmlAndroid]8;;
Stuff
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$]8;;
]8;;\

View file

@ -1,12 +0,0 @@
]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html\Rsync Android]8;;\
Stuff
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$
]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.htmlAndroid]8;;
Stuff
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$]8;;
]8;;\

View file

@ -7,7 +7,8 @@ style := style.css
images := images images := images
# 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 := pandoc/template.html template_html := pandoc/template.html
template_ansi := pandoc/template
# Template for extracting metadata of .md files in json format # Template for extracting metadata of .md files in json format
list_template := pandoc/meta-json-template.txt list_template := pandoc/meta-json-template.txt
@ -34,25 +35,25 @@ $(articles_html): %.html: %.md
mv ./articles.json.tmp $(article_list); \ mv ./articles.json.tmp $(article_list); \
# Build articles using pandoc # Build articles using pandoc
pandoc $< --template $(template) --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": "$(notdir $@)"}' )]' $(article_list) > articles.json.tmp; \ jq '.articles += [$(shell pandoc $< --template $(list_template) | jq '. += {"filename": "$(patsubst %.html, %, $(notdir $@))"}')]' $(article_list) > articles.json.tmp; \
mv ./articles.json.tmp $(article_list); \ mv ./articles.json.tmp $(article_list); \
$(articles_ansi): %: %.md $(articles_ansi): %: %.md
pandoc $< --standalone --to ansi --output $@ pandoc $< --template $(template_ansi) --to ansi --output $@
index.html: index.md $(articles_html) index.html: index.md $(articles_html)
# Build index.html with metadata injected from articles_list # 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 $@; \ pandoc $< --template $(template_html) --include-after-body shark.js --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@; \
index: index.md $(articles_ansi) index: index.md $(articles_html) $(articles_ansi)
pandoc $< --standalone --to ansi --output $@ pandoc $< --template $(template_ansi) --metadata-file $(article_list) --to ansi --output $@
about.html: about.md about.html: about.md
pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@ pandoc $< --template $(template_html) --css $(style) --highlight-style zenburn --mathml --toc --output $@
about: about.md about: about.md
pandoc $< --standalone --to ansi --output $@ pandoc $< --template $(template_ansi) --to ansi --output $@

View file

@ -6,7 +6,7 @@
"subtitle": "Some unintuitive quirks of Latex", "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.", "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", "title": "Latex Endeavors",
"filename": "latex-endeavors.html" "filename": " latex-endeavors"
}, },
{ {
"author": "Never", "author": "Never",
@ -14,14 +14,14 @@
"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",
"filename": "random-linux-utils.html" "filename": " random-linux-utils"
}, },
{ {
"author": "Never", "author": "Never",
"date": "12.01.2026", "date": "12.01.2026",
"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.", "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", "title": "Using rsync on Android to syncronise my Music library",
"filename": "rsync-android.html" "filename": " rsync-android"
} }
] ]
} }

19
index
View file

@ -2,6 +2,25 @@
──────────────────── ────────────────────
Hello World
ARTICLES
Latex Endeavors (latex-endeavors)
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.
Never - 9.1.2026
Random linux utilities (random-linux-utils)
Tricks and tools I learned about, while tweaking my Linux sytem or
trying to do productive things.
Never - 25.7.2025
Using rsync on Android to syncronise my Music
library (rsync-android)
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.
Never - 12.01.2026
]8;;\ ]8;;\

View file

@ -44,11 +44,8 @@
<h1 class="title">Home</h1> <h1 class="title">Home</h1>
</header> </header>
<section id="content"> <section id="content">
<nav id="TOC" role="doc-toc">
</nav>
<article> <article>
<p>Hello World</p>
</article> </article>
<nav id="articles"> <nav id="articles">
<h2>Articles</h2> <h2>Articles</h2>

View file

@ -1,4 +1,4 @@
--- ---
title: Home title: Home
toc: true
--- ---
Hello World

36
pandoc/template Normal file
View file

@ -0,0 +1,36 @@
$if(titleblock)$
$titleblock$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
$table-of-contents$
$endif$
$body$
$if(articles)$
ARTICLES
$for(articles)$
$if(articles.title)$
$articles.title$$if(articles.filename)$ ($articles.filename$)$endif$
$endif$
$if(articles.summary)$
$articles.summary$
$endif$
$if(articles.author)$ $articles.author$$endif$$if(articles.date)$ - $articles.date$$endif$
$endfor$
$endif$
$for(include-after)$
$include-after$
$endfor$

View file

@ -93,7 +93,7 @@ $if(articles)$
<li> <li>
<div class="articles-header"> <div class="articles-header">
$if(articles.title)$ $if(articles.title)$
<a href="$articles.filename$" class="articles-title">$articles.title$</a> <a href="$articles.filename$.html" class="articles-title">$articles.title$</a>
$endif$ $endif$
$if(articles.author)$ $if(articles.author)$
<p class="articles-author"><em>$articles.author$</em></p> <p class="articles-author"><em>$articles.author$</em></p>

View file

@ -4,4 +4,27 @@
ARTICLES
Latex Endeavors (latex-endeavors)
Never
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.
9.1.2026
Random linux utilities (random-linux-utils)
Never
Tricks and tools I learned about, while tweaking my Linux sytem or
trying to do productive things.
25.7.2025
Using rsync on Android to syncronise my Music
library (rsync-android)
Never
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.
12.01.2026
]8;;\ ]8;;\