port to hugo

This commit is contained in:
Tim Schubert 2021-08-19 01:19:20 +02:00
parent 12fc6478e1
commit 0dca9733e7
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
22 changed files with 46 additions and 67 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
build/
*.html
result
public/
**/_gen

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "themes/anubis"]
path = themes/anubis
url = https://github.com/mitrichius/hugo-theme-anubis.git

6
archetypes/default.md Normal file
View file

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

View file

@ -1,4 +0,0 @@
#!/bin/sh
find src -type d -exec sh -c 'srcpath="$(realpath ${0})"; outpath=$(realpath "build${0#src}"); echo "src=$srcpath; dst=$outpath"; mkdir -p "$outpath" && cd "$srcpath" && pandoc -d "${srcpath}/defaults.pandoc" -o "${outpath}/index.html" ' {} \;

4
config.toml Normal file
View file

@ -0,0 +1,4 @@
baseURL = 'http://dadada.li/'
languageCode = 'en-us'
title = 'dadada'
theme = "anubis"

View file

@ -1,2 +1,7 @@
---
title: "dadada's Blog"
---
# dadada's Blog
- [Managing stripped GPG keys](gpg/)
- [My $HOME](home-layout/)

View file

@ -1,4 +1,8 @@
*2017-12-03*
---
title: Managing stripped GPG keys
date: 2017-12-03
---
# Managing stripped GPG keys
```
+--(master pass) +----(user pass)--+

View file

@ -1,4 +1,9 @@
*2018-09-03*
---
title: My $HOME
date: 2018-09-03
---
# My $HOME
Recently, I came across a blog posting titled "[$HOME, sweet $HOME](https://morr.cc/home-sweet-home/)", where [@blinry](https://morr.cc/) advocates for structuring your `$HOME` directory based on projects and their activity.
After reading this I felt inspired to finally have a look at the mess I made of my `$HOME` in the last years.

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before After
Before After

View file

@ -1,3 +1,8 @@
---
title: dadada's projects
---
# dadada's projects
See also my [GitHub](https://github.com/dadada) and [Gitlab](https://gitlab.com/dadada_).
## Contributions

View file

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

View file

@ -1,4 +1,8 @@
*2019-03-14*
---
title: systemd.generator(7)
data: 2019-03-14
---
# systemd.generator(7)
[Recording](https://www.youtube.com/watch?v=X88zHJjodFw)

View file

@ -1,8 +0,0 @@
defaults:
- ../defaults.pandoc
input-files:
- index.md
template: ../template.html
metadata:
title: dadada's Blog

View file

@ -1,3 +0,0 @@
defaults: ../../defaults.pandoc
metadata:
title: Managing stripped GPG keys

View file

@ -1,3 +0,0 @@
defaults: ../../defaults.pandoc
metadata:
title: My $HOME

View file

@ -1,13 +0,0 @@
# Fallbacks
from: markdown
to: html5
input-files:
- index.md
standalone: true
metadata:
author:
- dadada
title: dadada

View file

@ -1,8 +0,0 @@
defaults:
- ../defaults.pandoc
input-files:
- index.md
template: ../template.html
metadata:
title: dadada's projects

View file

@ -1,8 +0,0 @@
defaults:
- ../defaults.pandoc
input-files:
- index.md
template: ../template.html
metadata:
title: dadada's Talks

View file

@ -1,3 +0,0 @@
defaults: ../../defaults.pandoc
metadata:
title: systemd.generator(7)

View file

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="author" content="dadada" />
<title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title>
</head>
<body>
$if(title)$
<h1>$title$</h1>
$endif$
$body$
</body>
</html>

1
themes/anubis Submodule

@ -0,0 +1 @@
Subproject commit fe617fe6f9d956a8e7cd5a7069840481d17f8c82