v6/site_test/layout/article.html

60 lines
1.9 KiB
HTML
Raw Normal View History

{% extends "default" %}
{% block titlevariable %}
{% set title = metadata.title %}
{% endblock %}
2024-12-31 14:29:11 -05:00
{% block head -%}
<meta property="og:type" content="article">
{% if metadata.short_desc %}
<meta property="og:description" content="{{ metadata.short_desc }}">
{% else %}
<meta property="og:description" content="The outer part of a shadow is called the penumbra.">
{% endif %}
2024-12-31 14:29:11 -05:00
{%- endblock %}
{% block image %}
{% if metadata.card_image_path %}
<meta property="twitter:image" content="https://{{ _domain }}{{ metadata.card_image_path }}">
<meta property="og:image" content="https://{{ _domain }}{{ metadata.card_image_path }}">
{% else %}
<meta property="twitter:image" content="https://{{ _domain }}/shadowfacts.png">
<meta property="og:image" content="https://{{ _domain }}/shadowfacts.png">
{% endif %}
2024-12-31 14:29:11 -05:00
{% endblock %}
{% block title %}{{ post.metadata.title }}{% endblock %}
{% block content -%}
2024-12-31 14:29:11 -05:00
<article itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<meta itemprop="mainEntityOfPage" content="https://{{ _domain }}{{ _permalink }}">
2025-01-04 14:59:15 -05:00
<h1 class="article-title" itemprop="name headline">
{% if metadata.html_title %}
{{ metadata.html_title }}
{% else %}
{{ metadata.title }}
{% endif %}
</h1>
2025-01-12 16:08:06 -05:00
<p class="article-meta">
Published on
<time itemprop="datePublished" datetime="{{ metadata.date | iso_datetime }}">
{{ metadata.date | pretty_date }},
</time>
in
{% for tag in metadata.tags %}
<span itemprop="articleSection">
<a href="/{{ tag.slug }}/">{{ tag.name }}</a>{% if loop.last %}.{% else %},{% endif %}
</span>
{% endfor %}
{{ word_count | reading_time }} minute read.
</p>
2025-01-04 14:59:15 -05:00
<div class="article-content" itemprop="articleBody">
{{ content }}
</div>
2024-12-31 14:29:11 -05:00
</article>
{%- endblock %}