2014-12-29 22:08:56 +00:00
|
|
|
{% extends "base.html" %}
|
2017-08-10 16:30:29 +00:00
|
|
|
{% block title %}Categories{% endblock %}
|
2014-12-29 22:08:56 +00:00
|
|
|
{% block description %}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="uk-width-medium-4-5">
|
2015-01-09 19:28:34 +00:00
|
|
|
<h1 class="uk-heading-large">Categories</h1>
|
2014-12-29 22:08:56 +00:00
|
|
|
{% for category, articles in categories %}
|
|
|
|
<h2><a href="{{ SITEURL}}/{{ category.url}}" class="uk-link-muted">{{ category|capitalize }}</a></h2>
|
|
|
|
{% for article in articles %}
|
|
|
|
|
|
|
|
<article class="uk-article">
|
2015-01-09 19:28:34 +00:00
|
|
|
<a href="{{ SITEURL }}/{{ article.url }}" class="uk-article-title uk-link-muted mg-list-title">{{ article.title }}</a>
|
|
|
|
<p class="uk-article-meta">
|
|
|
|
<time datetime="{{ article.date.strftime('%Y-%m-%d') }}">{{ article.locale_date }}</time>
|
|
|
|
</p>
|
|
|
|
<p>{{ ' '.join(article.content.split(' ')[0:75])|striptags }}...</p>
|
2014-12-29 22:08:56 +00:00
|
|
|
</article>
|
2017-08-10 16:30:29 +00:00
|
|
|
|
2014-12-29 22:08:56 +00:00
|
|
|
{% endfor %}
|
2015-01-09 19:28:34 +00:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
2014-12-29 22:08:56 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|