theme/templates/category.html

changeset 36
9507107a1133
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/theme/templates/category.html	Sat Mar 12 17:37:27 2016 +0100
@@ -0,0 +1,46 @@
+{% extends "base.html" %}
+{% block pageheader %}
+<div class="hp-header" style="height:33%;">
+    <div class="page-header">
+        <div class="content-header">
+            <div id="title-block">
+                <h1 style="font-size:3em; color:white;">Articles in the {{ category }} category </h1>
+            </div>
+        </div>
+    </div>
+</div>
+{% endblock %}
+
+
+{% block content %}
+
+{% block content_title %}
+{% endblock %}
+
+
+
+{% set cnt = 0 %}
+
+
+<blocks cols="2">
+{% for article in articles_page.object_list %}
+        <div class="sec-article">
+            <div class="read-more">{{ article.locale_date}}</div>
+
+            <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3>
+            <p>
+            {{ article.summary }}            
+            </p>
+        </div>
+
+{% endfor %}
+</blocks>
+{% if articles_page.has_other_pages() %}
+<div class="pagination-block">
+    {% include 'pagination.html' %}
+</div>
+{% endif %}
+
+{% endblock content %}
+<!-- END CONTENT -->
+

mercurial