templates: Move template boilerplate to base

Moving HTML boilerplate to a separate file will allow other templates to
inherit it.
master
Dustin 2017-07-02 11:25:09 -05:00
parent 5f323faf95
commit bb9f19ff04
2 changed files with 28 additions and 18 deletions

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{%- block head %}
<meta charset="utf-8" />
<title>Dark Chest of Wonders</title>
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/foundation/6.2.1/foundation.min.css" />
{% endblock head -%}
</head>
<body>
<div class="row">
<div class="columns">
<h1>Dark Chest of Wonders</h1>
</div>
</div>
{% block body %}
{% endblock body -%}
</body>
</html>

View File

@ -1,18 +1,7 @@
<!DOCTYPE html> {% extends "base.html.j2" %}
<html> {% block body %}
<div class="row column text-right">
<head> <a href="upload">Upload</a>
<meta charset="utf-8" />
<title>Dark Chest of Wonders</title>
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/foundation/6.2.1/foundation.min.css" />
</head>
<body>
<div class="row">
<div class="columns">
<h1>Dark Chest of Wonders</h1>
</div>
</div> </div>
<div class="row small-up-1 medium-up-2 large-up-4"> <div class="row small-up-1 medium-up-2 large-up-4">
{% for image in images|reverse %} {% for image in images|reverse %}
@ -24,6 +13,4 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
</body> {% endblock body %}
</html>