diff options
-rw-r--r-- | templates/base.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index 860bf9e..c34e4bd 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,6 +17,22 @@ <h1>comics.spline.de </h1> <div id="content"> + {%- 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 %} + </div> + {% endif %} + <h1>{{date.day}}.{{date.month}}.{{date.year}}</h1> {%- for entry in entries %} |