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

41 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% 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 %}
{% block description %}
{% match description %}
{% when Some with (description_content) %}
{{ description_content }}
{% when None %}
A page on {{ settings.site_name }}
{% endmatch %}
{% endblock %}
{% block content %}
{% if draft == true -%}
<blockquote>
⚠️ This page is marked as a <b>draft</b>! It may not yet be complete!
</blockquote>
{% endif -%}
{% if show_title == true -%}
<h1>{{ title }}</h1>
{% endif -%}
{% for content_block in content_blocks %}
{% include "resolve_content.html" %}
{% endfor %}
{% endblock %}