Skip to content
Snippets Groups Projects
Unverified Commit 7a1d68a7 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add more meta-data to blog posts

parent 38f1b65f
No related branches found
No related tags found
No related merge requests found
Pipeline #193042 passed
<p class="subtitle is-7 py-2"> <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="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> <span title="Lesezeit"><i class="fa-solid fa-hourglass-start"></i> {{ post.reading_time }} min</span>
</p> </p>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="card-image"> <div class="card-image">
<figure class="image is-4by3"> <figure class="image is-4by3">
{% set image = resize_image(path="@/" ~ post.colocated_path ~ "/" ~ post.extra.depiction.image, width=800, height=600) -%} {% 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 %} {% 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> <figcaption class="p-1 has-text-white has-background-black is-size-7 is-italic">{{ post.extra.depiction.credits }}</figcaption>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment