update Makefile and directory structure
|
|
@ -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 $@
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="pandoc/style.css" />
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
@ -50,16 +50,16 @@
|
|||
</nav>
|
||||
<article>
|
||||
<h2 id="stuff">Stuff</h2>
|
||||
<p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>k</mi></munderover><mi>i</mi><mo>=</mo><mfrac><mrow><mi>k</mi><mrow><mo stretchy="true" form="prefix">(</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow></mrow><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex"> \sum_{i=1}^k i = \frac{k(k+1)}{2} </annotation></semantics></math></p>
|
||||
<p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>k</mi></munderover><mi>i</mi><mo>=</mo><mfrac><mrow><mi>k</mi><mo stretchy="false" form="prefix">(</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo stretchy="false" form="postfix">)</mo></mrow><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex"> \sum_{i=1}^k i = \frac{k(k+1)}{2} </annotation></semantics></math></p>
|
||||
</article>
|
||||
|
||||
</section>
|
||||
<footer id="page-footer">
|
||||
<!-- <embed type="text/html" src="https://cups.teabucket.eu/embed?from=never" style="width:320px; height: 120px; scale: 0.66;"> -->
|
||||
<p class="cups-light">
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="pandoc/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="pandoc/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="pandoc/cups_right.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="images/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="images/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="images/cups_right.svg" width="30" height="30/"></a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
title: About
|
||||
---
|
||||
|
||||
## Stuff
|
||||
|
||||
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$
|
||||
|
||||
|
|
@ -1,152 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="pandoc" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
<meta name="author" content="Never Gude" />
|
||||
<title>Article DSADASD</title>
|
||||
<link rel="icon" type="image/x-icon" href="pandoc/favicon.png">
|
||||
<style>
|
||||
code{white-space: pre-wrap;}
|
||||
span.smallcaps{font-variant: small-caps;}
|
||||
div.columns{display: flex; gap: min(4vw, 1.5em);}
|
||||
div.column{flex: auto; overflow-x: auto;}
|
||||
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
|
||||
/* The extra [class] is a hack that increases specificity enough to
|
||||
override a similar rule in reveal.js */
|
||||
ul.task-list[class]{list-style: none;}
|
||||
ul.task-list li input[type="checkbox"] {
|
||||
font-size: inherit;
|
||||
width: 0.8em;
|
||||
margin: 0 0.8em 0.2em -1.6em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
/* CSS for syntax highlighting */
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
pre > code.sourceCode { white-space: pre; position: relative; }
|
||||
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
|
||||
pre > code.sourceCode > span:empty { height: 1.2em; }
|
||||
.sourceCode { overflow: visible; }
|
||||
code.sourceCode > span { color: inherit; text-decoration: inherit; }
|
||||
div.sourceCode { margin: 1em 0; }
|
||||
pre.sourceCode { margin: 0; }
|
||||
@media screen {
|
||||
div.sourceCode { overflow: auto; }
|
||||
}
|
||||
@media print {
|
||||
pre > code.sourceCode { white-space: pre-wrap; }
|
||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
||||
}
|
||||
pre.numberSource code
|
||||
{ counter-reset: source-line 0; }
|
||||
pre.numberSource code > span
|
||||
{ position: relative; left: -4em; counter-increment: source-line; }
|
||||
pre.numberSource code > span > a:first-child::before
|
||||
{ content: counter(source-line);
|
||||
position: relative; left: -1em; text-align: right; vertical-align: baseline;
|
||||
border: none; display: inline-block;
|
||||
-webkit-touch-callout: none; -webkit-user-select: none;
|
||||
-khtml-user-select: none; -moz-user-select: none;
|
||||
-ms-user-select: none; user-select: none;
|
||||
padding: 0 4px; width: 4em;
|
||||
}
|
||||
pre.numberSource { margin-left: 3em; padding-left: 4px; }
|
||||
div.sourceCode
|
||||
{ color: #cccccc; background-color: #303030; }
|
||||
@media screen {
|
||||
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
|
||||
}
|
||||
code span.al { color: #ffcfaf; } /* Alert */
|
||||
code span.an { color: #7f9f7f; font-weight: bold; } /* Annotation */
|
||||
code span.at { } /* Attribute */
|
||||
code span.bn { color: #dca3a3; } /* BaseN */
|
||||
code span.bu { } /* BuiltIn */
|
||||
code span.cf { color: #f0dfaf; } /* ControlFlow */
|
||||
code span.ch { color: #dca3a3; } /* Char */
|
||||
code span.cn { color: #dca3a3; font-weight: bold; } /* Constant */
|
||||
code span.co { color: #7f9f7f; } /* Comment */
|
||||
code span.cv { color: #7f9f7f; font-weight: bold; } /* CommentVar */
|
||||
code span.do { color: #7f9f7f; } /* Documentation */
|
||||
code span.dt { color: #dfdfbf; } /* DataType */
|
||||
code span.dv { color: #dcdccc; } /* DecVal */
|
||||
code span.er { color: #c3bf9f; } /* Error */
|
||||
code span.ex { } /* Extension */
|
||||
code span.fl { color: #c0bed1; } /* Float */
|
||||
code span.fu { color: #efef8f; } /* Function */
|
||||
code span.im { } /* Import */
|
||||
code span.in { color: #7f9f7f; font-weight: bold; } /* Information */
|
||||
code span.kw { color: #f0dfaf; } /* Keyword */
|
||||
code span.op { color: #f0efd0; } /* Operator */
|
||||
code span.ot { color: #efef8f; } /* Other */
|
||||
code span.pp { color: #ffcfaf; font-weight: bold; } /* Preprocessor */
|
||||
code span.sc { color: #dca3a3; } /* SpecialChar */
|
||||
code span.ss { color: #cc9393; } /* SpecialString */
|
||||
code span.st { color: #cc9393; } /* String */
|
||||
code span.va { } /* Variable */
|
||||
code span.vs { color: #cc9393; } /* VerbatimString */
|
||||
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
|
||||
</style>
|
||||
<link rel="stylesheet" href="pandoc/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
<ul>
|
||||
<li><a href="index.html">Home</a></li><li><a href="about.html">About</a></li>
|
||||
</ul>
|
||||
<!--
|
||||
<ul>
|
||||
<li>
|
||||
<span id="dark-mode">
|
||||
<input id="dark-mode-toggle" type="checkbox"><label for="dark-mode-toggle">Dark mode</label>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
-->
|
||||
</header>
|
||||
<header id="title-block-header">
|
||||
<h1 class="title">Article DSADASD</h1>
|
||||
<p class="subtitle">Just testimg too</p>
|
||||
<p class="author">Never Gude</p>
|
||||
<p class="date">10.12.2025</p>
|
||||
</header>
|
||||
<section id="content">
|
||||
<nav id="TOC" role="doc-toc">
|
||||
<ul>
|
||||
<li><a href="#merge-pdfs" id="toc-merge-pdfs">Merge pdfs</a>
|
||||
<ul>
|
||||
<li><a href="#using-ghostscript" id="toc-using-ghostscript">Using
|
||||
Ghostscript</a></li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article>
|
||||
<h2 id="merge-pdfs">Merge pdfs</h2>
|
||||
<h3 id="using-ghostscript">Using Ghostscript</h3>
|
||||
<p>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.</p>
|
||||
<blockquote>
|
||||
<p>Block quote time yay</p>
|
||||
</blockquote>
|
||||
<div class="sourceCode" id="cb1"><pre
|
||||
class="sourceCode numberSource bash numberLines"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1"></a><span class="fu">gs</span> <span class="at">-dNOPAUSE</span> <span class="at">-sDEVICE</span><span class="op">=</span>pdfwrite <span class="dt">\</span></span>
|
||||
<span id="cb1-2"><a href="#cb1-2"></a> <span class="at">-sOUTPUTFILE</span><span class="op">=</span>output.pdf <span class="dt">\</span></span>
|
||||
<span id="cb1-3"><a href="#cb1-3"></a> <span class="at">-dBATCH</span> 1.pdf 2.pdf</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="dt">int</span> hello_world<span class="op">(</span><span class="dt">int</span> x<span class="op">)</span> <span class="op">{</span></span>
|
||||
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a> printf<span class="op">(</span><span class="st">"Hello World </span><span class="sc">%i</span><span class="st">"</span><span class="op">,</span> x<span class="op">);</span></span>
|
||||
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> x<span class="op">;</span></span>
|
||||
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span></code></pre></div>
|
||||
</article>
|
||||
|
||||
</section>
|
||||
<footer id="page-footer">
|
||||
<!-- <embed type="text/html" src="https://cups.teabucket.eu/embed?from=never" style="width:320px; height: 120px; scale: 0.66;"> -->
|
||||
<p class="cups-light">
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="pandoc/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="pandoc/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="pandoc/cups_right.svg" width="30" height="30/"></a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -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"}
|
||||
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
---
|
||||
title: Random linux utilities
|
||||
subtitle: Neat things I picked up along the way
|
||||
author: Never Gude
|
||||
date: 25.7.2025
|
||||
summary: Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things.
|
||||
---
|
||||
|
||||
## Merge pdfs
|
||||
### Using Ghostscript
|
||||
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.
|
||||
|
||||
```bash
|
||||
gs -dNOPAUSE -sDEVICE=pdfwrite \
|
||||
-sOUTPUTFILE=output.pdf \
|
||||
-dBATCH 1.pdf 2.pdf
|
||||
```
|
||||
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 11 MiB After Width: | Height: | Size: 11 MiB |
|
Before Width: | Height: | Size: 246 KiB After Width: | Height: | Size: 246 KiB |
|
|
@ -22,7 +22,7 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="pandoc/style.css" />
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
@ -53,6 +53,16 @@
|
|||
<h2>Articles</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<div class="articles-header">
|
||||
<a href="random-linux-utils-2.html" class="articles-title">Random linux
|
||||
utilities 2</a>
|
||||
<p class="articles-author"><em>Never Gude</em></p>
|
||||
</div>
|
||||
<p class="articles-summary">Tricks and tools I learned about, while
|
||||
tweaking my Linux sytem or trying to do productive things.</p>
|
||||
<p class="articles-date">4.1.2026</p>
|
||||
</li>
|
||||
<li>
|
||||
<div class="articles-header">
|
||||
<a href="random-linux-utils.html" class="articles-title">Random linux
|
||||
utilities</a>
|
||||
|
|
@ -69,9 +79,9 @@ tweaking my Linux sytem or trying to do productive things.</p>
|
|||
<footer id="page-footer">
|
||||
<!-- <embed type="text/html" src="https://cups.teabucket.eu/embed?from=never" style="width:320px; height: 120px; scale: 0.66;"> -->
|
||||
<p class="cups-light">
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="pandoc/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="pandoc/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="pandoc/cups_right.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="images/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="images/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="images/cups_right.svg" width="30" height="30/"></a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
---
|
||||
title: Home
|
||||
toc: true
|
||||
---
|
||||
|
|
@ -1 +0,0 @@
|
|||
$meta-json$
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="pandoc" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
$for(author-meta)$
|
||||
<meta name="author" content="$author-meta$" />
|
||||
$endfor$
|
||||
$if(date-meta)$
|
||||
<meta name="dcterms.date" content="$date-meta$" />
|
||||
$endif$
|
||||
$if(keywords)$
|
||||
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
|
||||
$endif$
|
||||
$if(description-meta)$
|
||||
<meta name="description" content="$description-meta$" />
|
||||
$endif$
|
||||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||||
<link rel="icon" type="image/x-icon" href="pandoc/favicon.png">
|
||||
<style>
|
||||
$styles.html()$
|
||||
</style>
|
||||
$for(css)$
|
||||
<link rel="stylesheet" href="$css$" />
|
||||
$endfor$
|
||||
$for(header-includes)$
|
||||
$header-includes$
|
||||
$endfor$
|
||||
$if(math)$
|
||||
$if(mathjax)$
|
||||
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
||||
$endif$
|
||||
$math$
|
||||
$endif$
|
||||
</head>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
<ul>
|
||||
<li><a href="index.html">Home</a></li><li><a href="about.html">About</a></li>
|
||||
</ul>
|
||||
<!--
|
||||
<ul>
|
||||
<li>
|
||||
<span id="dark-mode">
|
||||
<input id="dark-mode-toggle" type="checkbox"><label for="dark-mode-toggle">Dark mode</label>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
-->
|
||||
</header>
|
||||
$for(include-before)$
|
||||
$include-before$
|
||||
$endfor$
|
||||
$if(title)$
|
||||
<header id="title-block-header">
|
||||
<h1 class="title">$title$</h1>
|
||||
$if(subtitle)$
|
||||
<p class="subtitle">$subtitle$</p>
|
||||
$endif$
|
||||
$for(author)$
|
||||
<p class="author">$author$</p>
|
||||
$endfor$
|
||||
$if(date)$
|
||||
<p class="date">$date$</p>
|
||||
$endif$
|
||||
$if(abstract)$
|
||||
<div class="abstract">
|
||||
<div class="abstract-title">$abstract-title$</div>
|
||||
$abstract$
|
||||
</div>
|
||||
$endif$
|
||||
</header>
|
||||
<section id="content">
|
||||
$endif$
|
||||
$if(toc)$
|
||||
<nav id="$idprefix$TOC" role="doc-toc">
|
||||
$if(toc-title)$
|
||||
<h2 id="$idprefix$toc-title">$toc-title$</h2>
|
||||
$endif$
|
||||
$table-of-contents$
|
||||
</nav>
|
||||
$endif$
|
||||
<article>
|
||||
$body$
|
||||
</article>
|
||||
$if(articles)$
|
||||
<nav id="articles">
|
||||
<h2>Articles</h2>
|
||||
<ul>
|
||||
$for(articles)$
|
||||
<li>
|
||||
<div class="articles-header">
|
||||
$if(articles.title)$
|
||||
<a href="$articles.filename$" class="articles-title">$articles.title$</a>
|
||||
$endif$
|
||||
$if(articles.author)$
|
||||
<p class="articles-author"><em>$articles.author$</em></p>
|
||||
$endif$
|
||||
</div>
|
||||
$if(articles.summary)$
|
||||
<p class="articles-summary">$articles.summary$</p>
|
||||
$endif$
|
||||
$if(articles.date)$
|
||||
<p class="articles-date">$articles.date$</p>
|
||||
$endif$
|
||||
</li>
|
||||
$endfor$
|
||||
</ul>
|
||||
</nav>
|
||||
$endif$
|
||||
|
||||
</section>
|
||||
$for(include-after)$
|
||||
$include-after$
|
||||
$endfor$
|
||||
<footer id="page-footer">
|
||||
<!-- <embed type="text/html" src="https://cups.teabucket.eu/embed?from=never" style="width:320px; height: 120px; scale: 0.66;"> -->
|
||||
<p class="cups-light">
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="pandoc/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="pandoc/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="pandoc/cups_right.svg" width="30" height="30/"></a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="generator" content="pandoc" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
<meta name="author" content="Never Gude" />
|
||||
<title>Article 1</title>
|
||||
<title>Random linux utilities 2</title>
|
||||
<link rel="icon" type="image/x-icon" href="pandoc/favicon.png">
|
||||
<style>
|
||||
code{white-space: pre-wrap;}
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
code span.vs { color: #cc9393; } /* VerbatimString */
|
||||
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
|
||||
</style>
|
||||
<link rel="stylesheet" href="pandoc/style.css" />
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
@ -105,10 +105,10 @@
|
|||
-->
|
||||
</header>
|
||||
<header id="title-block-header">
|
||||
<h1 class="title">Article 1</h1>
|
||||
<p class="subtitle">Just testimg</p>
|
||||
<h1 class="title">Random linux utilities 2</h1>
|
||||
<p class="subtitle">Neat things I picked up along the way</p>
|
||||
<p class="author">Never Gude</p>
|
||||
<p class="date">10.12.2025</p>
|
||||
<p class="date">4.1.2026</p>
|
||||
</header>
|
||||
<section id="content">
|
||||
<nav id="TOC" role="doc-toc">
|
||||
|
|
@ -126,26 +126,19 @@ Ghostscript</a></li>
|
|||
<p>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.</p>
|
||||
<blockquote>
|
||||
<p>Block quote time yay</p>
|
||||
</blockquote>
|
||||
<div class="sourceCode" id="cb1"><pre
|
||||
class="sourceCode numberSource bash numberLines"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1"></a><span class="fu">gs</span> <span class="at">-dNOPAUSE</span> <span class="at">-sDEVICE</span><span class="op">=</span>pdfwrite <span class="dt">\</span></span>
|
||||
<span id="cb1-2"><a href="#cb1-2"></a> <span class="at">-sOUTPUTFILE</span><span class="op">=</span>output.pdf <span class="dt">\</span></span>
|
||||
<span id="cb1-3"><a href="#cb1-3"></a> <span class="at">-dBATCH</span> 1.pdf 2.pdf</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="dt">int</span> hello_world<span class="op">(</span><span class="dt">int</span> x<span class="op">)</span> <span class="op">{</span></span>
|
||||
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a> printf<span class="op">(</span><span class="st">"Hello World </span><span class="sc">%i</span><span class="st">"</span><span class="op">,</span> x<span class="op">);</span></span>
|
||||
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> x<span class="op">;</span></span>
|
||||
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span></code></pre></div>
|
||||
class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">gs</span> <span class="at">-dNOPAUSE</span> <span class="at">-sDEVICE</span><span class="op">=</span>pdfwrite <span class="dt">\</span></span>
|
||||
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> <span class="at">-sOUTPUTFILE</span><span class="op">=</span>output.pdf <span class="dt">\</span></span>
|
||||
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="at">-dBATCH</span> 1.pdf 2.pdf</span></code></pre></div>
|
||||
</article>
|
||||
|
||||
</section>
|
||||
<footer id="page-footer">
|
||||
<!-- <embed type="text/html" src="https://cups.teabucket.eu/embed?from=never" style="width:320px; height: 120px; scale: 0.66;"> -->
|
||||
<p class="cups-light">
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="pandoc/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="pandoc/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="pandoc/cups_right.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="images/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="images/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="images/cups_right.svg" width="30" height="30/"></a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
|
@ -23,8 +23,9 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
/* CSS for syntax highlighting */
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
pre > code.sourceCode { white-space: pre; position: relative; }
|
||||
pre > code.sourceCode > span { line-height: 1.25; }
|
||||
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
|
||||
pre > code.sourceCode > span:empty { height: 1.2em; }
|
||||
.sourceCode { overflow: visible; }
|
||||
code.sourceCode > span { color: inherit; text-decoration: inherit; }
|
||||
|
|
@ -35,7 +36,7 @@
|
|||
}
|
||||
@media print {
|
||||
pre > code.sourceCode { white-space: pre-wrap; }
|
||||
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
||||
}
|
||||
pre.numberSource code
|
||||
{ counter-reset: source-line 0; }
|
||||
|
|
@ -86,7 +87,7 @@
|
|||
code span.vs { color: #cc9393; } /* VerbatimString */
|
||||
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
|
||||
</style>
|
||||
<link rel="stylesheet" href="pandoc/style.css" />
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
@ -135,9 +136,9 @@ class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="
|
|||
<footer id="page-footer">
|
||||
<!-- <embed type="text/html" src="https://cups.teabucket.eu/embed?from=never" style="width:320px; height: 120px; scale: 0.66;"> -->
|
||||
<p class="cups-light">
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="pandoc/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="pandoc/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="pandoc/cups_right.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="images/cups_left.svg" width="30" height="30/"></a>
|
||||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="images/cups_logo.svg" width="120" height="60/"></a>
|
||||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="images/cups_right.svg" width="30" height="30/"></a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -9,18 +9,19 @@
|
|||
--button-background: #d0d0d0;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--foreground: #fdfdfd;
|
||||
--background: #1a1a1a;
|
||||
--border: #4c4c4c;
|
||||
--html-background: #303030;
|
||||
--blockquote-text: #e6e6e6;
|
||||
--blockquote-border: #606060;
|
||||
--button-border: #4c4c4c;
|
||||
--button-background: #404040;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--foreground: #fdfdfd;
|
||||
--background: #1a1a1a;
|
||||
--border: #4c4c4c;
|
||||
--html-background: #303030;
|
||||
--blockquote-text: #e6e6e6;
|
||||
--blockquote-border: #606060;
|
||||
--button-border: #4c4c4c;
|
||||
--button-background: #404040;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
color: var(--foreground);
|
||||
/*background: url("recursion.gif");*/
|
||||
|
|
@ -52,7 +53,7 @@ body {
|
|||
justify-content: space-between;
|
||||
text-align: left;
|
||||
border: 4pt ridge var(--border);
|
||||
background: url("sand.png");
|
||||
background: url("images/sand.png");
|
||||
background-size: 25%;
|
||||
}
|
||||
|
||||
|
|
@ -110,7 +111,7 @@ body {
|
|||
|
||||
#page-footer {
|
||||
border: 4pt ridge var(--border);
|
||||
background: url("sand.png");
|
||||
background: url("images/sand.png");
|
||||
background-size: 25%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||