use title in template

This commit is contained in:
Tim Schubert 2021-05-02 13:51:51 +02:00
parent 9aba585da8
commit 9dcb016b71
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
9 changed files with 26 additions and 9 deletions

View file

@ -1,3 +1,3 @@
#!/bin/sh
find . -iname "*.md" -type f -exec sh -c 'pandoc -s -f commonmark -t html --template=src/template.html -o "${0%.md}.html" "${0}"' {} \;
find . -iname "*.md" -type f -exec sh -c 'pandoc -s -f markdown -t html --template=src/template.html -o "${0%.md}.html" "${0}"' {} \;

View file

@ -1,4 +1,6 @@
# Managing stripped GPG keys
---
title: Managing stripped GPG keys
...
*2017-12-03*

View file

@ -1,4 +1,6 @@
# My $HOME
---
title: My $HOME
...
*2018-09-03*

View file

@ -1,4 +1,6 @@
# Blogs
---
title: Blogs
...
- [Managing stripped GPG keys](gpg/)
- [My $HOME](home-layout/)

View file

@ -1,4 +1,6 @@
# dadada
---
title: dadada
...
**Welcome to my personal homepage ;-)**

View file

@ -1,4 +1,6 @@
# Projects
---
title: Projects
...
See also my [GitHub](https://github.com/dadada) and [Gitlab](https://gitlab.com/dadada_).

View file

@ -1,3 +1,5 @@
# Talks
---
title: Talks
...
- [systemd.generator(7)](systemd.generator/)

View file

@ -1,4 +1,6 @@
# systemd.generator(7)
---
title: systemd.generator(7)
...
*2019-03-14*

View file

@ -3,9 +3,12 @@
<head>
<meta charset="utf-8" />
<meta name="author" content="dadada" />
<title>dadada</title>
<title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title>
</head>
<body>
$if(title)$
<h1>$title$</h1>
$endif$
$body$
</body>
</html>