From 7a1d68a7ab8834586040b2cd47d35b16e8ffdf0b Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Wed, 9 Oct 2024 19:21:37 +0200
Subject: [PATCH] Add more meta-data to blog posts

---
 templates/blog/meta_line.html | 1 +
 templates/blog/post.html      | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/blog/meta_line.html b/templates/blog/meta_line.html
index 0da20b0..09b900d 100644
--- a/templates/blog/meta_line.html
+++ b/templates/blog/meta_line.html
@@ -1,4 +1,5 @@
 <p class="subtitle is-7 py-2">
   <span title="Veröffentlicht am"><i class="fa-solid fa-calendar-days"></i> <time datetime="{{ post.date }}" property="schema:datePublished">{{ post.date }}</time></span> ·
+  <span title="Anzahl Wörter"><i class="fa-solid fa-ruler"></i> <span property="schema:wordCount">{{ post.word_count }} Wörter</span></span> ·
   <span title="Lesezeit"><i class="fa-solid fa-hourglass-start"></i> {{ post.reading_time }} min</span>
 </p>
diff --git a/templates/blog/post.html b/templates/blog/post.html
index 807eaf6..e0bc6dc 100644
--- a/templates/blog/post.html
+++ b/templates/blog/post.html
@@ -22,7 +22,7 @@
         <div class="card-image">
           <figure class="image is-4by3">
             {% set image = resize_image(path="@/" ~ post.colocated_path ~ "/" ~ post.extra.depiction.image, width=800, height=600) -%}
-              <img src="{{ image.url }}" alt="{{ post.extra.depiction.alt }}" />
+              <img src="{{ image.url }}" alt="{{ post.extra.depiction.alt }}" property="schema:thumbnailUrl" />
             {% if post.extra.depiction.credits %}
               <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ post.extra.depiction.credits }}</figcaption>
             {% endif %}
-- 
GitLab