2025-01-01 18:31:30 -05:00
{% 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" >
2025-01-01 18:31:30 -05:00
{% 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 %}
2025-01-01 18:31:30 -05:00
{% 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 %}
2025-01-01 18:31:30 -05:00
{% block content -%}
2024-12-31 14:29:11 -05:00
< article itemprop = "blogPost" itemscope itemtype = "https://schema.org/BlogPosting" >
2025-01-01 18:31:30 -05:00
< meta itemprop = "mainEntityOfPage" content = "https://{{ _domain }}{{ _permalink }}" >
2025-01-12 19:04:58 -05:00
< h1 class = "headline" itemprop = "name headline" >
2025-01-04 14:59:15 -05:00
{% 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 %}
2025-01-13 16:45:35 -05:00
< span title = "{{ word_count }} word{% if word_count != 1 %}s{% endif %}" >
{{ word_count | reading_time }} minute read.
< / span >
2025-01-12 16:08:06 -05:00
< / p >
2025-01-12 19:04:58 -05:00
< div class = "body-content" itemprop = "articleBody" >
2025-02-12 10:50:02 -05:00
{% if metadata.preamble %}
{{ metadata.preamble }}
{% endif %}
2025-01-04 14:59:15 -05:00
{{ content }}
< / div >
2024-12-31 14:29:11 -05:00
< / article >
2025-01-01 18:31:30 -05:00
2025-02-12 15:41:15 -05:00
{% if metadata.comments_post_id %}
< hr >
< script >
const commentsPostID = "{{ metadata.comments_post_id }}";
< / script >
< details id = "comments-container" >
< summary > < h2 > Comments< / h2 > < / summary >
< p class = "italic" > Reply to this post < a href = "https://social.shadowfacts.net/notice/{{ metadata.comments_post_id }}" target = "_blank" > via the Fediverse< / a > .< / p >
< div id = "comments-list" > < / div >
2025-02-17 00:51:13 -05:00
< noscript >
< aside class = "inline" >
< p >
Comments cannot be shown inline since you have JavaScript disabled.
< / p >
< / aside >
< / noscript >
2025-02-12 15:41:15 -05:00
< / details >
< script src = "/js/comments.js?{{ _stylesheet_cache_buster }}" async > < / script >
2025-02-17 00:51:13 -05:00
{% endif %}
2025-02-12 15:41:15 -05:00
2025-01-01 18:31:30 -05:00
{%- endblock %}