diff options
author | mounderfod <mounderfod@gmail.com> | 2023-07-13 14:46:04 +0100 |
---|---|---|
committer | mounderfod <mounderfod@gmail.com> | 2023-07-13 14:46:04 +0100 |
commit | 170e0d2b6afe8a93ba48677082173925c282416e (patch) | |
tree | cb1951c5148255eff7b89ec10bbb9af62c9eb6aa | |
parent | c97707d0c5b3e3a068372f2a23ac6325ff28c246 (diff) | |
download | website-170e0d2b6afe8a93ba48677082173925c282416e.tar.gz |
IndieWeb part 5
-rw-r--r-- | _layouts/post.html | 15 |
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 |