theme/templates/category.html

Thu, 10 Nov 2022 18:52:14 +0100

author
David Douard <david.douard@logilab.fr>
date
Thu, 10 Nov 2022 18:52:14 +0100
changeset 144
202ad178f68f
parent 36
9507107a1133
permissions
-rw-r--r--

Fix matomo and CATEGORY_FEED_ATOM config option

36
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
1 {% extends "base.html" %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
2 {% block pageheader %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
3 <div class="hp-header" style="height:33%;">
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
4 <div class="page-header">
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
5 <div class="content-header">
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
6 <div id="title-block">
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
7 <h1 style="font-size:3em; color:white;">Articles in the {{ category }} category </h1>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
8 </div>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
9 </div>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
10 </div>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
11 </div>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
12 {% endblock %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
13
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
14
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
15 {% block content %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
16
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
17 {% block content_title %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
18 {% endblock %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
19
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
20
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
21
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
22 {% set cnt = 0 %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
23
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
24
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
25 <blocks cols="2">
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
26 {% for article in articles_page.object_list %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
27 <div class="sec-article">
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
28 <div class="read-more">{{ article.locale_date}}</div>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
29
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
30 <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
31 <p>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
32 {{ article.summary }}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
33 </p>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
34 </div>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
35
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
36 {% endfor %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
37 </blocks>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
38 {% if articles_page.has_other_pages() %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
39 <div class="pagination-block">
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
40 {% include 'pagination.html' %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
41 </div>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
42 {% endif %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
43
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
44 {% endblock content %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
45 <!-- END CONTENT -->
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
46

mercurial