diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1f3faf4 --- /dev/null +++ b/Makefile @@ -0,0 +1,48 @@ +SHELL = /bin/sh +INSTALLDIR := ./public_html/eh/eh/eh/eh-eh/ + +# The name of the stylesheet. This needs to be copied to any directory containing html files that use it. +style := style.css +images := images + +# Main html template that pandoc uses to generate .html from .md files +template := pandoc/template.html + +# Template for extracting metadata of .md files in json format +list_template := pandoc/meta-json-template.txt + +# List of articles with their metadata to be used in the creation of the article list in index.html +article_list := articles.json + +# article targets +articles := $(patsubst %.md,%.html,$(wildcard articles/*.md)) + +all: index.html about.html + +install: + cp -r index.html about.html $(articles) $(style) $(images) $(INSTALLDIR); \ + +clean: + echo '{"articles": []}' > $(article_list); \ + rm index.html about.html $(articles); + +$(articles): %.html: %.md + # Build articles using pandoc + pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@; \ + + # Extract metadata from .md file + # pandoc $< --template $(list_template) > article.json.tmp.0; \ + + # Append filename field to article object. This is used to link to the article from index.html. + # pandoc $< --template $(list_template) | jq '. += {"filename": "$(notdir $@)"}' > article.json.tmp; \ + + # Append article object to the article list + jq '.articles += [$(shell pandoc $< --template $(list_template) | jq '. += {"filename": "$(notdir $@)"}' )]' $(article_list) > articles.json.tmp; \ + mv ./articles.json.tmp $(article_list); \ + +index.html: index.md $(articles) + # Build index.html with metadata injected from articles_list + pandoc $< --template $(template) --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@; \ + +about.html: about.md + pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@ diff --git a/about.html b/about.html new file mode 100644 index 0000000..58eca52 --- /dev/null +++ b/about.html @@ -0,0 +1,66 @@ + + +
+ + + +Just testimg
+Neat things I picked up along the way
-10.12.2025
+4.1.2026
Just testimg too
+Neat things I picked up along the way
-10.12.2025
+25.7.2025
Tricks and tools I learned about, while +tweaking my Linux sytem or trying to do productive things.
+4.1.2026
+Neat things I picked up along the way
+ +4.1.2026
+Ghostscript has a feature to merge multiple pdf files into one. +Although ImageMagick also has this feature, I prefer this one, as it +doesn’t rasterize and scales down the pdf files.
+gs -dNOPAUSE -sDEVICE=pdfwrite \
+ -sOUTPUTFILE=output.pdf \
+ -dBATCH 1.pdf 2.pdfdiff --git a/public_html/eh/eh/eh/eh-eh/Makefile b/public_html/eh/eh/eh/eh-eh/Makefile deleted file mode 100644 index 2b72293..0000000 --- a/public_html/eh/eh/eh/eh-eh/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -template := pandoc/template.html -style := pandoc/style.css - -article_list := articles.json -list_template := pandoc/meta-json-template.txt - -articles := $(patsubst %.md,%.html,$(wildcard articles/*.md)) - -all: index.html about.html - -clean: - echo '{"articles": []}' > $(article_list); \ - # rm $(notdir $(articles)); \ - rm ./index.html ./about.html ./articles.json.tmp; - -$(articles): %.html: %.md - pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $(notdir $@); \ - pandoc $< --template $(list_template) > article.json.tmp.0; \ - jq '. += {"filename": "$(notdir $@)"}' article.json.tmp.0 > article.json.tmp.1; \ - jq '.articles += [$(shell cat article.json.tmp.1)]' $(article_list) > articles.json.tmp; \ - cat ./articles.json.tmp > ./articles.json; - -index.html: index.md $(articles) - pandoc $< --template $(template) --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@ - -about.html: about.md - pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@ diff --git a/public_html/eh/eh/eh/eh-eh/about.html b/public_html/eh/eh/eh/eh-eh/about.html index cd61b34..58eca52 100644 --- a/public_html/eh/eh/eh/eh-eh/about.html +++ b/public_html/eh/eh/eh/eh-eh/about.html @@ -22,7 +22,7 @@ vertical-align: middle; } - +
diff --git a/public_html/eh/eh/eh/eh-eh/article.json.tmp.0 b/public_html/eh/eh/eh/eh-eh/article.json.tmp.0 deleted file mode 100644 index 4e5d98d..0000000 --- a/public_html/eh/eh/eh/eh-eh/article.json.tmp.0 +++ /dev/null @@ -1 +0,0 @@ -{"author":"Never Gude","date":"25.7.2025","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"} diff --git a/public_html/eh/eh/eh/eh-eh/article.json.tmp.1 b/public_html/eh/eh/eh/eh-eh/article.json.tmp.1 deleted file mode 100644 index 65bb8bd..0000000 --- a/public_html/eh/eh/eh/eh-eh/article.json.tmp.1 +++ /dev/null @@ -1,8 +0,0 @@ -{ - "author": "Never Gude", - "date": "25.7.2025", - "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.html" -} diff --git a/public_html/eh/eh/eh/eh-eh/articles.json.tmp b/public_html/eh/eh/eh/eh-eh/articles.json.tmp deleted file mode 100644 index 6981602..0000000 --- a/public_html/eh/eh/eh/eh-eh/articles.json.tmp +++ /dev/null @@ -1,12 +0,0 @@ -{ - "articles": [ - { - "author": "Never Gude", - "date": "25.7.2025", - "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.html" - } - ] -} diff --git a/public_html/eh/eh/eh/eh-eh/images/cups_left.svg b/public_html/eh/eh/eh/eh-eh/images/cups_left.svg new file mode 100644 index 0000000..2412435 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/images/cups_left.svg @@ -0,0 +1,79 @@ + + diff --git a/public_html/eh/eh/eh/eh-eh/images/cups_left_dark.svg b/public_html/eh/eh/eh/eh-eh/images/cups_left_dark.svg new file mode 100644 index 0000000..7ae7a67 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/images/cups_left_dark.svg @@ -0,0 +1,101 @@ + + diff --git a/public_html/eh/eh/eh/eh-eh/images/cups_logo.svg b/public_html/eh/eh/eh/eh-eh/images/cups_logo.svg new file mode 100644 index 0000000..cecb1db --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/images/cups_logo.svg @@ -0,0 +1,103 @@ + + diff --git a/public_html/eh/eh/eh/eh-eh/images/cups_logo_dark.svg b/public_html/eh/eh/eh/eh-eh/images/cups_logo_dark.svg new file mode 100644 index 0000000..d01e673 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/images/cups_logo_dark.svg @@ -0,0 +1,34 @@ + + diff --git a/public_html/eh/eh/eh/eh-eh/images/cups_right.svg b/public_html/eh/eh/eh/eh-eh/images/cups_right.svg new file mode 100644 index 0000000..7da7c88 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/images/cups_right.svg @@ -0,0 +1,79 @@ + + diff --git a/public_html/eh/eh/eh/eh-eh/images/cups_right_dark.svg b/public_html/eh/eh/eh/eh-eh/images/cups_right_dark.svg new file mode 100644 index 0000000..5770ecf --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/images/cups_right_dark.svg @@ -0,0 +1,101 @@ + + diff --git a/public_html/eh/eh/eh/eh-eh/images/favicon.png b/public_html/eh/eh/eh/eh-eh/images/favicon.png new file mode 100644 index 0000000..feb52d1 Binary files /dev/null and b/public_html/eh/eh/eh/eh-eh/images/favicon.png differ diff --git a/public_html/eh/eh/eh/eh-eh/images/recursion.gif b/public_html/eh/eh/eh/eh-eh/images/recursion.gif new file mode 100644 index 0000000..2012eac Binary files /dev/null and b/public_html/eh/eh/eh/eh-eh/images/recursion.gif differ diff --git a/public_html/eh/eh/eh/eh-eh/images/sand.png b/public_html/eh/eh/eh/eh-eh/images/sand.png new file mode 100644 index 0000000..c0ba49c Binary files /dev/null and b/public_html/eh/eh/eh/eh-eh/images/sand.png differ diff --git a/public_html/eh/eh/eh/eh-eh/index.html b/public_html/eh/eh/eh/eh-eh/index.html index 87034a2..8e2bfe0 100644 --- a/public_html/eh/eh/eh/eh-eh/index.html +++ b/public_html/eh/eh/eh/eh-eh/index.html @@ -22,7 +22,7 @@ vertical-align: middle; } - +
diff --git a/public_html/eh/eh/eh/eh-eh/random-linux-utils-2.html b/public_html/eh/eh/eh/eh-eh/random-linux-utils-2.html new file mode 100644 index 0000000..9a137d4 --- /dev/null +++ b/public_html/eh/eh/eh/eh-eh/random-linux-utils-2.html @@ -0,0 +1,145 @@ + + +
+ + + + +
+ + + + +
+