summary refs log tree commit diff stats
path: root/_layouts
diff options
context:
space:
mode:
authormounderfod <mounderfod@gmail.com>2023-07-13 14:46:04 +0100
committermounderfod <mounderfod@gmail.com>2023-07-13 14:46:04 +0100
commit170e0d2b6afe8a93ba48677082173925c282416e (patch)
treecb1951c5148255eff7b89ec10bbb9af62c9eb6aa /_layouts
parentc97707d0c5b3e3a068372f2a23ac6325ff28c246 (diff)
downloadwebsite-170e0d2b6afe8a93ba48677082173925c282416e.tar.gz
IndieWeb part 5
Diffstat (limited to '_layouts')
-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