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

42 lines
1.1 KiB
HTML
Raw Normal View History

2023-02-04 02:23:51 -08:00
{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
2023-02-08 01:45:31 -08:00
{% block opengraph %}
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
{% match description %}
{% when Some with (description_content) %}
<meta property="og:description" content="{{ description_content }}" />
{% when None %}
<meta property="og:description" content="A page on {{ settings.site_name }}" />
{% endmatch %}
{% endblock %}
2023-02-04 02:23:51 -08:00
{% block description %}
{% match description %}
{% when Some with (description_content) %}
{{ description_content }}
{% when None %}
2023-02-05 04:13:50 -08:00
A page 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 page is marked as a <b>draft</b>! It may not yet be complete!
</blockquote>
{% endif -%}
2023-02-04 02:23:51 -08:00
{% if show_title == true -%}
<h1>{{ title }}</h1>
{% endif -%}
2023-02-04 05:31:00 -08:00
{% for content_block in content_blocks %}
2023-02-07 03:37:29 -08:00
{% include "resolve_content.html" %}
2023-02-04 02:23:51 -08:00
{% endfor %}
2023-02-07 03:37:29 -08:00
2023-02-04 02:23:51 -08:00
{% endblock %}