fixes
This commit is contained in:
parent
8bfb24bd0c
commit
3b8869893c
11 changed files with 15 additions and 135 deletions
|
|
@ -13,7 +13,7 @@ clean:
|
|||
# rm $(notdir $(articles)); \
|
||||
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 $(list_template) > article.json.tmp.0; \
|
||||
jq '. += {"filename": "$(notdir $@)"}' article.json.tmp.0 > article.json.tmp.1; \
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
</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><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>
|
||||
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"author": "Never Gude",
|
||||
"date": "25.7.2025",
|
||||
"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",
|
||||
"filename": "random-linux-utils.html"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,23 +4,9 @@
|
|||
"author": "Never Gude",
|
||||
"date": "25.7.2025",
|
||||
"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",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,23 +4,9 @@
|
|||
"author": "Never Gude",
|
||||
"date": "25.7.2025",
|
||||
"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",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
```
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
```
|
||||
|
|
@ -3,7 +3,7 @@ title: Random linux utilities
|
|||
subtitle: Neat things I picked up along the way
|
||||
author: Never Gude
|
||||
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
|
||||
|
|
@ -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
|
||||
the pdf files.
|
||||
|
||||
> Block
|
||||
> quote
|
||||
> time yay
|
||||
|
||||
```bash {.numberLines}
|
||||
```bash
|
||||
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;
|
||||
}
|
||||
|
||||
```
|
||||
|
|
|
|||
|
|
@ -58,23 +58,10 @@
|
|||
utilities</a>
|
||||
<p class="articles-author"><em>Never Gude</em></p>
|
||||
</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>
|
||||
</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>
|
||||
</nav>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,8 @@
|
|||
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 { line-height: 1.25; }
|
||||
pre > code.sourceCode > span:empty { height: 1.2em; }
|
||||
.sourceCode { overflow: visible; }
|
||||
code.sourceCode > span { color: inherit; text-decoration: inherit; }
|
||||
|
|
@ -36,7 +35,7 @@
|
|||
}
|
||||
@media print {
|
||||
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
|
||||
{ counter-reset: source-line 0; }
|
||||
|
|
@ -126,17 +125,10 @@ 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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue