Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: af93a163ec
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (58 sloc) 1.808 kB
{% load blog_tags keyword_tags i18n %}
{% blog_recent_posts 5 as recent_posts %}
{% if recent_posts %}
<h3>{% trans "Recent Posts" %}</h3>
<ul>
{% for recent_post in recent_posts %}
<li><a href="{% url blog_post_detail recent_post.slug %}"
>{{ recent_post.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% blog_months as months %}
{% if months %}
<h3>{% trans "Archive" %}</h3>
{% for month in months %}
{% ifchanged month.date.year %}
{% if not forloop.first %}</ul>{% endif %}
<h4>{{ month.date.year }}</h4><ul>
{% endifchanged %}
<li><a href="{% url blog_post_list_month year=month.date.year month=month.date.month %}"
>{{ month.date|date:"F" }}</a> ({{ month.post_count }})</li>
{% endfor %}
</ul>
{% endif %}
{% blog_categories as categories %}
{% if categories %}
<h3>{% trans "Categories" %}</h3>
<ul>
{% for category in categories %}
<li><a href="{% url blog_post_list_category category.slug %}"
>{{ category }}</a> ({{ category.post_count }})</li>
{% endfor %}
</ul>
{% endif %}
{% keywords_for blog.blogpost as tags %}
{% if tags %}
<h3>{% trans "Tags" %}</h3>
<ul class="tags cloud">
{% for tag in tags %}
<li><a href="{% url blog_post_list_tag tag.slug %}"
class="tag-weight-{{ tag.weight }}">{{ tag }}</a> ({{ tag.item_count }})</li>
{% endfor %}
</ul>
{% endif %}
{% blog_authors as authors %}
{% if authors %}
<h3>{% trans "Authors" %}</h3>
<ul>
{% for author in authors %}
<li><a href="{% url blog_post_list_author author.username %}"
>{{ author.get_full_name|default:author.username }}</a>
({{ author.post_count }})</li>
{% endfor %}
</ul>
{% endif %}
<h3>{% trans "Feeds" %}</h3>
<a href="{% url blog_post_feed "rss" %}">{% trans "RSS" %}</a> /
<a href="{% url blog_post_feed "atom" %}">{% trans "Atom" %}</a>
Jump to Line
Something went wrong with that request. Please try again.