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/page.html

35 lines
988 B
HTML

{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% block description %}
{% match description %}
{% when Some with (description_content) %}
{{ description_content }}
{% when None %}
A page on eviee.gay
{% endmatch %}
{% endblock %}
{% block content %}
{% if show_title == true -%}
<h1>{{ title }}</h1>
{% endif -%}
{% 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 }}
{% when BlockTypes::HEADER { text, size } %}
<h{{size}}>{{text}}</h{{size}}>
{% when BlockTypes::UNSUPPORTED %}
<b>UNSUPPORTED block type here!</b>
{% endmatch %}
{% endfor %}
{% endblock %}