Socialify

Folder ..

Viewing categories.html
26 lines (24 loc) • 686.0 B

 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
{% extends 'blog/partials/base.html' %} {% block content %}
<h2 style="margin-top:15px;">Categories</h2>
{% load static %}
{% if categories %}
<div id="categories-area">
    <ul style="border-radius: 8px;">
        {% for category in categories %}
        <li>
            <span>
                <img src="{% static 'images/site/icons/books.gif' %}" alt="Archive" border="0">
            </span>
            <span>
                <a href="{% url 'blog:categories' %}/{{ category.slug }}">
                    {{ category }}
                </a>
            </span>
        </li>
        {% endfor %}
    </ul>
</div>
{% else %}
<p>No categories found.</p>
{% endif %}

{% endblock %}