blob: 9da666a676e30dad86942ff9bc5dc92a65fb0bc2 (
plain) (
blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{% extends "base.html" %}
{% block title %}Blog{%endblock%}
{% block content %}
<div id="content">
{% block content_title %}
<h1>Blog</h1>
{% endblock %}
<ul class="unstyled">
{% for article in articles_page.object_list %}
<li>
<div>
<div class="header">
<h2>{{ article.title }}</h2>
</div>
<p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</span></small></p>
<div class="entry-content">
{{ article.summary }}
</div><!-- /.entry-content -->
<div class="row">
<div class="span1 offset7">
<a class="btn btn-small" href="{{ SITEURL }}{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">Mehr</a>
</div>
</div>
</div>
</li>
<li><hr /></li>
{% endfor %}
</ul><!-- /#posts-list -->
<div class="pagination pagination-centered">
<ul>
{% if articles_page.has_previous() %}
<li><a href="{{ SITEURL }}{% if articles_page.previous_page_number() != 1 %}{{ page_name }}{{ articles_page.previous_page_number() }}/{% endif %}">←</a></li>
{% endif %}
{% if articles_page.has_previous() and (articles_page.previous_page_number() != 1) %}
<li><a href="{{ SITEURL }}">1</a></li>
<li class="disabled"><a href="#">...</a></li>
{% endif %}
<li class="active"><a href="#">{{ articles_page.number }}</a></li>
{% if articles_page.has_next() %}
<li><a href="{{ SITEURL }}{{ page_name }}{{ articles_page.next_page_number() }}/">→</a></li>
{% endif %}
{% if articles_page.has_next() and (articles_page.next_page_number() != articles_paginator.num_pages) %}
<li class="disabled"><a href="#">...</a></li>
<li><a href="{{ SITEURL }}{{ page_name }}{{ articles_page.num_pages }}/">{{ articles_paginator.num_pages }}</a></li>
{% endif %}
</ul>
</div>
</div><!-- /#content -->
{% endblock content %}
|