1
2023-02-07 15:12:21 -05:00

51 lines
1.4 KiB
HTML

{% extends "base.html" %}
{# Additional metadata for Google #}
{% block head %}
{{ super() }}
{% if page.description and page.date %}
<script type="application/ld+json">
{# Import our template file #}
{% set template = load_data(path="jsonld_templates/blog_post.jsonld") %}
{# Now we can fill in any additional data #}
{{ template |
replace(from="{{url}}", to=config.base_url ~ page.path) |
replace(from="{{title}}", to=page.title) |
replace(from="{{date}}", to=page.date) |
replace(from="{{profile_pic}}", to=config.extra.profile_photo) |
safe
}}
</script>
{% endif %}
{% endblock head %}
{# Pass data through to the base template #}
{% block variable_wormhole %}
{{ super() }}
{% set title = page.title %}
{% set description = page.description %}
{% set is_article = true %}
{% if page.extra.uses %}
{% set feature_flags = page.extra.uses %}
{% endif %}
{% if page.extra.redir_to %}
{% set redirect_target = page.extra.redir_to %}
{% endif %}
{% if page.extra.opengraph %}
{% set opengraph = page.extra.opengraph %}
{% endif %}
{% endblock variable_wormhole %}
{# Page content #}
{% block page_start %}
{% include "components/heading-card.html" %}
{% endblock page_start %}
{% block content %}
<div style="height:0.5em;"></div>
<h1 style="margin-bottom:0;padding-bottom:0;">{{page.title}}</h1>
<em>{{page.description}}</em>
<br><br>
{{ page.content | safe }}
{% endblock content %}