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
+3 -15
View File
@@ -1,25 +1,13 @@
{% extends "base.html" %}
{% block title %}{{ section.title }}.{% endblock title %}
{% block title %}{{ section.title }}{% endblock title %}
{% block head %}
<link rel="stylesheet" href="/blog.css">
{% endblock head %}
{% block content %}
<section id="intro" class="section-row">
<div class="section">
<h1>{{ section.title }}.</h1>
<div class="left-right-split">
<p>Latest news and articles from the Graphite team.</p>
<p class="feed">
<a href="/blog/rss.xml">
<img class="icon" src="https://static.graphite.rs/icons/feed.svg" alt="RSS" />
<span class="link arrow">RSS Feed</span>
</a>
</p>
</div>
</div>
</section>
{{ section.content | safe }}
<section id="articles" class="section">
{% for page in section.pages %}
<article>