summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--_layouts/post.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index e6a54de..ef3e7aa 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -1,13 +1,17 @@
 ---
 layout: default
 ---
-
+<article class="h-entry">
 <a href="/blog">
     <p>⟸ Back to blog</p>
 </a>
-<h1>{{page.title}}</h1>
-<p><em style="color: gray">{{page.date | date: "%-d %B %Y"}}</em></p>
-{{content}}
+<h1 class="p-name">{{page.title}}</h1>
+<time class="dt-published" datetime="{{page.date}}">
+    <p><em style="color: gray">{{page.date | date: "%-d %B %Y"}}</em></p>
+</time>
+<p class="p-summary" style="display: none;">{{post.excerpt | strip_html | truncatewords: 20}}</p>
+
+<div class="e-content">{{content}}</div>
 
 <p>
     <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray" class="bi bi-tag-fill"
@@ -16,4 +20,5 @@ layout: default
             d="M2 1a1 1 0 0 0-1 1v4.586a1 1 0 0 0 .293.707l7 7a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7-7A1 1 0 0 0 6.586 1H2zm4 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" />
     </svg>
     <em style="color: gray;">{{page.tags | join: ", "}}</em>
-</p>
\ No newline at end of file
+</p>
+</article>
\ No newline at end of file