website/website/common/templates/common/content_page.html

36 lines
1.1 KiB
HTML
Raw Normal View History

2022-06-14 20:57:43 +01:00
{% extends "wagtail_base.html" %}
2023-08-29 21:57:04 +01:00
{% load static sri navbar_tags %}
2022-06-26 18:37:04 +01:00
2022-06-14 20:57:43 +01:00
{% block content %}
{% if page.body_html %}
<section class="container content">
{{ page.body_html|safe }}
</section>
{% endif %}
{% endblock %}
{% block post_content %}
2023-03-10 16:10:47 +00:00
{% if not request.is_preview %}
2023-04-16 15:05:10 +01:00
{% include "common/shareon.html" %}
2023-03-10 16:10:47 +00:00
{% include "common/comments.html" %}
2023-08-29 21:57:04 +01:00
{% if not request.user.is_authenticated %}
{% support_pill %}
{% endif %}
2023-03-10 16:10:47 +00:00
{% endif %}
{% endblock %}
{% block extra_css %}
{% sri_static "css/content-contrib.css" %}
2022-09-01 08:36:39 +01:00
{% sri_static "contrib/shareon/shareon.min.css" %}
2022-10-05 14:17:00 +01:00
<link rel="stylesheet" type="text/css" href="{% url 'code-block:styles' %}" />
{% endblock %}
{% block extra_js %}
<script async defer type="text/javascript" src="{% static 'js/content.js' %}" integrity="{% sri_integrity_static 'js/content.js' %}"></script>
2022-09-01 08:36:39 +01:00
<script async defer type="text/javascript" src="{% static 'contrib/shareon/shareon.iife.js' %}" integrity="{% sri_integrity_static 'contrib/shareon/shareon.iife.js' %}" init></script>
{% endblock %}