summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-05-29 11:04:17 +0200
committerxengineering <me@xengineering.eu>2022-05-29 11:04:17 +0200
commit2760405839127068310834f200844a345b31f29c (patch)
tree8bfbf28a03faa1d38920277710858e76da127268
parent09886926319d4b33727fd10996b06784f9057d8f (diff)
downloadwebsite-2760405839127068310834f200844a345b31f29c.tar
website-2760405839127068310834f200844a345b31f29c.tar.zst
website-2760405839127068310834f200844a345b31f29c.zip
Move data to front matter
-rw-r--r--content/_index.md13
-rw-r--r--themes/bare/layouts/index.html10
2 files changed, 15 insertions, 8 deletions
diff --git a/content/_index.md b/content/_index.md
index 4442bf4..1ae6a5c 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -1,6 +1,13 @@
-+++
-title = "xengineering"
-+++
+{
+ "title":"xengineering",
+ "heading":"xengineering",
+ "email":"me@xengineering.eu",
+ "xmpp":"xengineering@jabber.de",
+ "openpgp":{
+ "fingerprint":"A13B 2588 7878 7F94 3F6C 68F0 0FD1 F842 33FA 8900",
+ "file":"xengineering.asc"
+ }
+}
## Software
diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html
index a96d541..6d11e7a 100644
--- a/themes/bare/layouts/index.html
+++ b/themes/bare/layouts/index.html
@@ -8,7 +8,7 @@
<head>
- <title>xengineering</title>
+ <title>{{.Title}}</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -20,13 +20,13 @@
<main>
- <h1>{{.Title}}</h1>
+ <h1>{{.Params.heading}}</h1>
<div class="card">
<h3 class="card-first-item">Contact</h3>
- <p>Mail: me@xengineering.eu</p>
- <p>XMPP: xengineering@jabber.de</p>
- <p class="card-last-item">OpenPGP: <a href="xengineering.asc">A13B 2588 7878 7F94 3F6C 68F0 0FD1 F842 33FA 8900</a></p>
+ <p>Mail: {{.Params.email}}</p>
+ <p>XMPP: {{.Params.xmpp}}</p>
+ <p class="card-last-item">OpenPGP: <a href="{{.Params.openpgp.file}}">{{.Params.openpgp.fingerprint}}</a></p>
</div>
{{.Content}}