templates: Move template boilerplate to base
Moving HTML boilerplate to a separate file will allow other templates to inherit it.master
parent
5f323faf95
commit
bb9f19ff04
|
@ -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>
|
|
@ -1,18 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<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" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="row">
|
||||
<div class="columns">
|
||||
<h1>Dark Chest of Wonders</h1>
|
||||
</div>
|
||||
{% extends "base.html.j2" %}
|
||||
{% block body %}
|
||||
<div class="row column text-right">
|
||||
<a href="upload">Upload</a>
|
||||
</div>
|
||||
<div class="row small-up-1 medium-up-2 large-up-4">
|
||||
{% for image in images|reverse %}
|
||||
|
@ -24,6 +13,4 @@
|
|||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{% endblock body %}
|
||||
|
|
Loading…
Reference in New Issue