summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2012-09-14 05:13:35 +0200
committerroot <root@vm-staticweb.spline.inf.fu-berlin.de>2012-09-14 05:13:35 +0200
commit0b7d7557b7f0e3b748e5e46fcd33be7071679346 (patch)
tree58603e37d9cbf57447b4cabc6437ef70e8d3c7ce /templates
parentf0c00da2c90d27c9b00bb2da8664a36e2d0ea3ba (diff)
downloadcomics-0b7d7557b7f0e3b748e5e46fcd33be7071679346.tar.gz
comics-0b7d7557b7f0e3b748e5e46fcd33be7071679346.tar.bz2
comics-0b7d7557b7f0e3b748e5e46fcd33be7071679346.zip
templates/base.html: add template for html pages (and required files)
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..860bf9e
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Comics vom {{date.day}}.{{date.month}}.{{date.year}}</title>
+ <meta charset="utf-8" />
+ <link rel="stylesheet" type="text/css" href="/page.css">
+ {% if prev -%}
+ <link rel="prev" href="{{ prev.strftime("/sites/%Y/%m/%d.html") }}">
+ {%- endif %}
+ {% if next -%}
+ <link rel="next" href="{{ next.strftime("/sites/%Y/%m/%d.html") }}">
+ {%- endif %}
+ <link rel="home" href="/index.html">
+ </head>
+ <body>
+ <img src="/logo.png" alt="spline logo" width="300" >
+ <h1>comics.spline.de </h1>
+
+ <div id="content">
+ <h1>{{date.day}}.{{date.month}}.{{date.year}}</h1>
+
+ {%- for entry in entries %}
+ <h2>
+ {{ entry.comic.name }}
+ </h2>
+ <span class="source">
+ <a target="_blank" href="{{entry.comic.url}}">Originalseite</a>
+ </span><br />
+ <img src="{{ entry.path }}" {%- if entry.alt -%} title="{{entry.alt|safe}}" {%- endif -%} />
+
+ {%- if entry.title %}
+ <br />
+ <span class="title"> {{ entry.title }} </span>
+ {% endif %}
+ {% endfor -%}
+
+ {%- if next or prev %}
+ <div id="pagination">
+ {% if prev %}
+ <a class="prev" href="{{ prev.strftime("/sites/%Y/%m/%d.html") }}">
+ &larr; fr&uuml;her
+ </a>
+ {% endif -%}
+
+ {%- if next %}
+ <a class="next" href="{{ next.strftime("/sites/%Y/%m/%d.html") }}">
+ sp&auml;ter &rarr;
+ </a>
+ {% endif %}
+
+ <span>
+ <a href="/index.html">heute</a>
+ </span>
+ </div>
+ {% endif %}
+ </div>
+ </body>
+</html>
+