This commit is contained in:
Never 2025-12-15 23:39:45 +01:00
parent 8bfb24bd0c
commit 3b8869893c
11 changed files with 15 additions and 135 deletions

View file

@ -13,7 +13,7 @@ clean:
# rm $(notdir $(articles)); \ # rm $(notdir $(articles)); \
rm ./index.html ./about.html ./articles.json.tmp; rm ./index.html ./about.html ./articles.json.tmp;
$(articles): %.html: %.md clean $(articles): %.html: %.md
pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $(notdir $@); \ pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $(notdir $@); \
pandoc $< --template $(list_template) > article.json.tmp.0; \ pandoc $< --template $(list_template) > article.json.tmp.0; \
jq '. += {"filename": "$(notdir $@)"}' article.json.tmp.0 > article.json.tmp.1; \ jq '. += {"filename": "$(notdir $@)"}' article.json.tmp.0 > article.json.tmp.1; \

View file

@ -50,7 +50,7 @@
</nav> </nav>
<article> <article>
<h2 id="stuff">Stuff</h2> <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><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> <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>
</article> </article>
</section> </section>

View file

@ -1 +1 @@
{"author":"Never Gude","date":"25.7.2025","subtitle":"Neat things I picked up along the way","summary":"Testing dsa dsa dsa dsa DDDDDDDDDDDa","title":"Random linux utilities"} {"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"}

View file

@ -2,7 +2,7 @@
"author": "Never Gude", "author": "Never Gude",
"date": "25.7.2025", "date": "25.7.2025",
"subtitle": "Neat things I picked up along the way", "subtitle": "Neat things I picked up along the way",
"summary": "Testing dsa dsa dsa dsa DDDDDDDDDDDa", "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.html"
} }

View file

@ -4,23 +4,9 @@
"author": "Never Gude", "author": "Never Gude",
"date": "25.7.2025", "date": "25.7.2025",
"subtitle": "Neat things I picked up along the way", "subtitle": "Neat things I picked up along the way",
"summary": "Testing dsa dsa dsa dsa DDDDDDDDDDDa", "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.html"
},
{
"author": "Never Gude",
"date": "10.12.2025",
"subtitle": "Just testimg too",
"title": "Article DSADASD",
"filename": "article-1.html"
},
{
"author": "Never Gude",
"date": "10.12.2025",
"subtitle": "Just testimg",
"title": "Article 1",
"filename": "article-2.html"
} }
] ]
} }

View file

@ -4,23 +4,9 @@
"author": "Never Gude", "author": "Never Gude",
"date": "25.7.2025", "date": "25.7.2025",
"subtitle": "Neat things I picked up along the way", "subtitle": "Neat things I picked up along the way",
"summary": "Testing dsa dsa dsa dsa DDDDDDDDDDDa", "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.html"
},
{
"author": "Never Gude",
"date": "10.12.2025",
"subtitle": "Just testimg too",
"title": "Article DSADASD",
"filename": "article-1.html"
},
{
"author": "Never Gude",
"date": "10.12.2025",
"subtitle": "Just testimg",
"title": "Article 1",
"filename": "article-2.html"
} }
] ]
} }

View file

@ -1,30 +0,0 @@
---
title: Article DSADASD
subtitle: Just testimg too
author: Never Gude
date: 10.12.2025
---
## 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.
> Block
> quote
> time yay
```bash {.numberLines}
gs -dNOPAUSE -sDEVICE=pdfwrite \
-sOUTPUTFILE=output.pdf \
-dBATCH 1.pdf 2.pdf
```
```c
int hello_world(int x) {
printf("Hello World %i", x);
return x;
}
```

View file

@ -1,30 +0,0 @@
---
title: Article 1
subtitle: Just testimg
author: Never Gude
date: 10.12.2025
---
## 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.
> Block
> quote
> time yay
```bash {.numberLines}
gs -dNOPAUSE -sDEVICE=pdfwrite \
-sOUTPUTFILE=output.pdf \
-dBATCH 1.pdf 2.pdf
```
```c
int hello_world(int x) {
printf("Hello World %i", x);
return x;
}
```

View file

@ -3,7 +3,7 @@ title: Random linux utilities
subtitle: Neat things I picked up along the way subtitle: Neat things I picked up along the way
author: Never Gude author: Never Gude
date: 25.7.2025 date: 25.7.2025
summary: Testing dsa dsa dsa dsa DDDDDDDDDDDa summary: Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things.
--- ---
## Merge pdfs ## Merge pdfs
@ -12,20 +12,9 @@ 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 Although ImageMagick also has this feature, I prefer this one, as it doesn't rasterize and scales down
the pdf files. the pdf files.
> Block ```bash
> quote
> time yay
```bash {.numberLines}
gs -dNOPAUSE -sDEVICE=pdfwrite \ gs -dNOPAUSE -sDEVICE=pdfwrite \
-sOUTPUTFILE=output.pdf \ -sOUTPUTFILE=output.pdf \
-dBATCH 1.pdf 2.pdf -dBATCH 1.pdf 2.pdf
``` ```
```c
int hello_world(int x) {
printf("Hello World %i", x);
return x;
}
```

View file

@ -58,23 +58,10 @@
utilities</a> utilities</a>
<p class="articles-author"><em>Never Gude</em></p> <p class="articles-author"><em>Never Gude</em></p>
</div> </div>
<p class="articles-summary">Testing dsa dsa dsa dsa DDDDDDDDDDDa</p> <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">25.7.2025</p> <p class="articles-date">25.7.2025</p>
</li> </li>
<li>
<div class="articles-header">
<a href="article-1.html" class="articles-title">Article DSADASD</a>
<p class="articles-author"><em>Never Gude</em></p>
</div>
<p class="articles-date">10.12.2025</p>
</li>
<li>
<div class="articles-header">
<a href="article-2.html" class="articles-title">Article 1</a>
<p class="articles-author"><em>Never Gude</em></p>
</div>
<p class="articles-date">10.12.2025</p>
</li>
</ul> </ul>
</nav> </nav>

View file

@ -23,9 +23,8 @@
vertical-align: middle; vertical-align: middle;
} }
/* CSS for syntax highlighting */ /* CSS for syntax highlighting */
html { -webkit-text-size-adjust: 100%; }
pre > code.sourceCode { white-space: pre; position: relative; } pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; } pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; } .sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; } code.sourceCode > span { color: inherit; text-decoration: inherit; }
@ -36,7 +35,7 @@
} }
@media print { @media print {
pre > code.sourceCode { white-space: pre-wrap; } pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
} }
pre.numberSource code pre.numberSource code
{ counter-reset: source-line 0; } { counter-reset: source-line 0; }
@ -126,17 +125,10 @@ Ghostscript</a></li>
<p>Ghostscript has a feature to merge multiple pdf files into one. <p>Ghostscript has a feature to merge multiple pdf files into one.
Although ImageMagick also has this feature, I prefer this one, as it Although ImageMagick also has this feature, I prefer this one, as it
doesnt rasterize and scales down the pdf files.</p> doesnt rasterize and scales down the pdf files.</p>
<blockquote>
<p>Block quote time yay</p>
</blockquote>
<div class="sourceCode" id="cb1"><pre <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> 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"></a> <span class="at">-sOUTPUTFILE</span><span class="op">=</span>output.pdf <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"></a> <span class="at">-dBATCH</span> 1.pdf 2.pdf</span></code></pre></div> <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>
<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">&quot;Hello World </span><span class="sc">%i</span><span class="st">&quot;</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> </article>
</section> </section>