This repository has been archived on 2025-02-09. You can view files and clone it, but cannot push or open issues or pull requests.
kyanite/templates/post.html

55 lines
1.6 KiB
HTML
Raw Normal View History

2023-02-04 02:23:51 -08:00
{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% block description %}
{% match summary %}
{% when Some with (summary_content) %}
{{ summary_content }}
{% when None %}
2023-02-05 04:13:50 -08:00
A post on {{ settings.site_name }}
2023-02-04 02:23:51 -08:00
{% endmatch %}
{% endblock %}
{% block content %}
2023-02-04 19:24:12 -08:00
{% if draft == true -%}
<blockquote>
⚠️ This post is marked as a <b>draft</b>! It may not yet be complete!
</blockquote>
{% endif -%}
2023-02-04 02:23:51 -08:00
<h1>{{ title }}</h1>
{% match summary %}
{% when Some with (summary_content) %}
2023-02-05 00:32:07 -08:00
<b>{{ summary_content }}</b>
2023-02-04 02:23:51 -08:00
{% 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 />
2023-02-04 18:42:08 -08:00
{% for content_block in content_blocks %}
{% match content_block %}
{% when BlockTypes::HR %}
<hr />
{% when BlockTypes::PARAGRAPH { text } %}
<p>{{ text }}</p>
{% when BlockTypes::MARKDOWN { content } %}
{{ content|markdown }}
2023-02-05 05:44:02 -08:00
{% when BlockTypes::HTML { content } %}
{{ content|safe }}
2023-02-04 18:42:08 -08:00
{% when BlockTypes::HEADER { text, size } %}
<h{{size}}>{{text}}</h{{size}}>
2023-02-05 02:05:42 -08:00
{% else %}
2023-02-04 18:42:08 -08:00
<b>UNSUPPORTED block type here!</b>
{% endmatch %}
2023-02-04 02:23:51 -08:00
{% endfor %}
<br />
{% endblock %}