1diff --git a/content/posts/2020-07-14Friz_box_turned_off_DHCP.html b/content/posts/2020-07-14Friz_box_turned_off_DHCP.html
2index 569604b4a4169a0eca392de73071f6a436ded7b7..7eb69ef92382e479e9cd75d3ea6358ab7dfaaff9 100644
3--- a/content/posts/2020-07-14Friz_box_turned_off_DHCP.html
4+++ b/content/posts/2020-07-14Friz_box_turned_off_DHCP.html
5@@ -1,5 +1,4 @@
6 <section>
7- <h2>Friz.box turned off DHCP</h2>
8 <p>
9 If you turned off your DHCP server follow these steps to connect to FritzBox settings.
10 <br/>
11diff --git a/content/posts/2021-12-26K8S_private_gitlab_registry_using_podman.html b/content/posts/2021-12-26K8S_private_gitlab_registry_using_podman.html
12index 43b8245e2fd9b37cb4a1c028241c5313d7ac5ae0..470965c9cb2bdbed6e743a91b0e36e7d2af31f52 100644
13--- a/content/posts/2021-12-26K8S_private_gitlab_registry_using_podman.html
14+++ b/content/posts/2021-12-26K8S_private_gitlab_registry_using_podman.html
15@@ -1,5 +1,4 @@
16 <section>
17- <h2>K8S private gitlab registry using podman</h2>
18 <p>
19 This is based on <a
20 href="https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/">Log in to
21diff --git a/src/blog.rs b/src/blog.rs
22index 6c190a9ed1fc5adb26f9929c8bf5ca2f0665136b..e549fb2b5a88dd5de475938f001e493a0ab854e8 100644
23--- a/src/blog.rs
24+++ b/src/blog.rs
25@@ -21,6 +21,8 @@ #[derive(TemplateOnce)]
26 #[template(path = "post.html")]
27 struct PostTemplate {
28 content: String,
29+ title: String,
30+ date: String
31 }
32
33 pub struct BlogEntry {
34@@ -62,7 +64,13 @@ }
35
36
37 pub fn render_post_page(path: &String) -> String {
38- PostTemplate { content: get_file_content(path) }
39+ let blog = BlogEntry::new(path);
40+
41+ PostTemplate {
42+ content: get_file_content(path),
43+ title: blog.title,
44+ date: blog.datetime.format("%Y-%m-%d").to_string()
45+ }
46 .render_once()
47 .unwrap()
48 }
49diff --git a/templates/post.html b/templates/post.html
50index b1f9f72a79252d0610999b6c1c98eaff118c83ae..4e5cf9ad95c1437b78a52453f993571bfff2474d 100644
51--- a/templates/post.html
52+++ b/templates/post.html
53@@ -6,6 +6,8 @@ </head>
54 <body>
55 <% include!("header.html"); %>
56 <main class="container">
57+ <h2><%- title %></h2>
58+ <h5>created at: <%- date %></h2>
59 <%- content %>
60 </section>
61 </main>