Simplify website template code

This commit is contained in:
Keavon Chambers
2022-12-18 21:35:46 -08:00
parent f7317aa6b4
commit 9071d9fdca
16 changed files with 162 additions and 125 deletions
+5 -8
View File
@@ -1,15 +1,12 @@
{% extends "base.html" %}
{% block title %}{{ section.title }}.{% endblock title %}
{% block title %}{{ section.title }}{% endblock title %}
{% block head %}
<link rel="stylesheet" href="/page.css">
{% if section.extra.css %}
<link rel="stylesheet" href="{{ section.extra.css | safe }}">
{% endif %}
{% endblock head %}
{% block content %}
<section class="section-row">
<div class="section">
<h1>{{ section.title }}.</h1>
{{ section.content | safe }}
</div>
</section>
{{ section.content | safe }}
{% endblock content %}