blob: c5a61c4897806711ce4176e2db2b4e5d7d411d39 (
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
|
{% extends "base.html" %}
{% block title %}Categories{%endblock%}
{% block content %}
{% import 'macros.html' as macros %}
<div class="row">
<div class="small-12 columns article">
{% for cat, articles in categories|sort %}
<h2><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></h2>
{% for a in articles %}
{% if loop.index < 4 %}
{{ macros.article_summary(a,SITEURL,False,False,disqus=DISQUS_SITENAME) }}
{% elif loop.index == 4 %}
<a class="button" href="{{ SITEURL }}/{{ cat.url }}">See All…</a>
{% endif %}
{% endfor %}
{% if not loop.last %}
<hr>
{% endif %}
{% endfor %}
</div>
</div>
{% endblock content %}
|