diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2012-09-14 05:13:35 +0200 |
---|---|---|
committer | root <root@vm-staticweb.spline.inf.fu-berlin.de> | 2012-09-14 05:13:35 +0200 |
commit | 0b7d7557b7f0e3b748e5e46fcd33be7071679346 (patch) | |
tree | 58603e37d9cbf57447b4cabc6437ef70e8d3c7ce /templates | |
parent | f0c00da2c90d27c9b00bb2da8664a36e2d0ea3ba (diff) | |
download | comics-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.html | 59 |
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") }}"> + ← früher + </a> + {% endif -%} + + {%- if next %} + <a class="next" href="{{ next.strftime("/sites/%Y/%m/%d.html") }}"> + später → + </a> + {% endif %} + + <span> + <a href="/index.html">heute</a> + </span> + </div> + {% endif %} + </div> + </body> +</html> + |