90 lines
2.7 KiB
HTML
90 lines
2.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ title }}{% endblock %}
|
|
|
|
{% block opengraph %}
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:title" content="{{ title }}" />
|
|
|
|
{% match featured_image %}
|
|
{% when Some with (featured_image) %}
|
|
<meta property="og:image" content="{{ featured_image.url }}" />
|
|
{% when None %}
|
|
{% endmatch %}
|
|
|
|
{% match summary %}
|
|
{% when Some with (summary_content) %}
|
|
<meta property="og:description" content="{{ summary_content }}" />
|
|
{% when None %}
|
|
<meta property="og:description" content="A page on {{ settings.site_name }}" />
|
|
{% endmatch %}
|
|
|
|
<meta property="og:article:published_time" content="{{ publish_date }}" />
|
|
|
|
{% match last_updated %}
|
|
{% when Some with (last_updated_date) %}
|
|
<meta property="og:article:modified_time" content="{{ last_updated_date }}" />
|
|
{% when None %}
|
|
{% endmatch %}
|
|
{% endblock %}
|
|
|
|
{% block description %}
|
|
{% match summary %}
|
|
{% when Some with (summary_content) %}
|
|
{{ summary_content }}
|
|
{% when None %}
|
|
A post on {{ settings.site_name }}
|
|
{% endmatch %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if draft == true -%}
|
|
<blockquote>
|
|
⚠️ This post is marked as a <b>draft</b>! It may not yet be complete!
|
|
</blockquote>
|
|
{% endif -%}
|
|
|
|
<h1>{{ title }}</h1>
|
|
{% match summary %}
|
|
{% when Some with (summary_content) %}
|
|
<b>{{ summary_content }}</b>
|
|
{% when None %}
|
|
{% endmatch %}
|
|
{% match last_updated %}
|
|
{% when Some with (last_updated_date) %}
|
|
<p>Published: {{ publish_date }} | Last updated: {{ last_updated_date }}</p>
|
|
{% when None %}
|
|
<p>Published: {{ publish_date }}</p>
|
|
{% endmatch %}
|
|
|
|
<br />
|
|
|
|
{% match featured_image %}
|
|
{% when Some with (featured_image) %}
|
|
<div class="featured-image">
|
|
<img class="featured-image"
|
|
src="{{ featured_image.url }}"
|
|
{% match featured_image.alt %}
|
|
{% when Some with (alt) %}
|
|
alt="{{ alt }}"
|
|
{% when None %}
|
|
{% endmatch %}
|
|
/>
|
|
|
|
{% match featured_image.description %}
|
|
{% when Some with (image_description) %}
|
|
<p class="featured-image">{{ image_description }}</p>
|
|
{% when None %}
|
|
{% endmatch %}
|
|
</div>
|
|
|
|
<br />
|
|
{% when None %}
|
|
{% endmatch %}
|
|
|
|
{% for content_block in content_blocks %}
|
|
{% include "resolve_content.html" %}
|
|
{% endfor %}
|
|
|
|
<br />
|
|
{% endblock %}
|