summaryrefslogtreecommitdiffstats
path: root/templates/blog
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blog')
-rw-r--r--templates/blog/post.html.template1
-rw-r--r--templates/blog/posts/2024-10-22_nix_flakes.html.template2
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/blog/post.html.template b/templates/blog/post.html.template
index ba5e81f..d250fee 100644
--- a/templates/blog/post.html.template
+++ b/templates/blog/post.html.template
@@ -1,4 +1,5 @@
<article>
<a href="/">⬅️Home</a>
+ <h1>{{template "title" .}}</h1>
{{template "post"}}
</article>
diff --git a/templates/blog/posts/2024-10-22_nix_flakes.html.template b/templates/blog/posts/2024-10-22_nix_flakes.html.template
index b9b2ca0..d191908 100644
--- a/templates/blog/posts/2024-10-22_nix_flakes.html.template
+++ b/templates/blog/posts/2024-10-22_nix_flakes.html.template
@@ -1,4 +1,4 @@
-<h1>nix flakes for busy people</h1>
+{{define "title"}}nix flakes for busy people{{end}}
<h2>TL;DR</h2>