Bring consistency to templates, update structure to use new base

This commit is contained in:
Raymond Wanyoike 2016-11-06 22:34:37 +03:00
commit d2b298f147
12 changed files with 150 additions and 136 deletions

View file

@ -1,25 +1,24 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
{% if page.author %}
<meta name="author" content="{{ page.author }}">
{% endif %}
{% if page.summary %}
<meta name="description" content="{{ page.summary|striptags }}">
{% endif %}
<meta name="tags" contents="{% for tag in page.tags %}{{ tag }}, {% endfor %}">
{{ super() }}
{% if page.summary %}
<meta name="description" content="{{ page.summary|striptags }}">
{% endif %}
{% endblock %}
{% block title %}
{{ SITENAME }} &mdash; {{ page.title|striptags }}
{{ page.title|striptags }} {{ super() }}
{% endblock %}
{% block page_header %}
{{ page.title }}
{% endblock %}
{% block content %}
<div class="page">
<h1 class="title">{{ page.title }}</h1>
<div class="content">
{{ page.content }}
</div>
<div class="page">
<div class="page-main">
{{ page.content }}
</div>
</div>
{% endblock %}