File: index.html

package info (click to toggle)
python-werkzeug 1.0.1%2Bdfsg1-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,888 kB
  • sloc: python: 21,897; javascript: 173; makefile: 36; xml: 16
file content (26 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% extends "layout.html" %}
{% block body %}
  {% for day in days %}
  <div class="day">
    <h2>{{ day.date.strftime('%d %B %Y') }}</h2>
    {%- for entry in day.entries %}
    <div class="entry">
      <h3><a href="{{ entry.url|e }}">{{ entry.title }}</a></h3>
      <p class="meta">by <a href="{{ entry.blog.url|e }}">{{ entry.blog.name|e }}</a>
                      at {{ entry.pub_date.strftime('%H:%m') }}</p>
      <div class="text">{{ entry.text }}</div>
    </div>
    {%- endfor %}
  </div>
  {%- endfor %}

  {% if pagination.pages > 1 %}
  <div class="pagination">
    {%- if pagination.has_previous %}<a href="{{ pagination.previous }}">&laquo; Previous</a>
    {%- else %}<span class="inactive">&laquo; Previous</span>{% endif %}
    | {{ pagination.page }} |
    {% if pagination.has_next %}<a href="{{ pagination.next }}">Next &raquo;</a>
    {%- else %}<span class="inactive">Next &raquo;</span>{% endif %}
  </div>
  {% endif %}
{% endblock %}