website/conservancy/templates/blog/entry_list.html

32 lines
1.8 KiB
HTML
Raw Normal View History

2010-10-04 13:52:04 +00:00
{% extends "base_blog.html" %}
2024-02-26 23:19:38 +00:00
{% load static %}
2010-10-04 13:52:04 +00:00
{% block subtitle %}Conservancy Blog - {% endblock %}
{% block content %}
<div class="breadcrumbs">
2021-10-18 13:56:24 +00:00
<p><a href="/">Home</a> / <a href="/news/">News</a></p>
</div>
2010-10-04 13:52:04 +00:00
2024-02-26 23:19:38 +00:00
<h2><a href="/feeds/blog/" class="feedlink"><img src="{% static 'img/feed-icon-14x14.png' %}" alt="[RSS]"/></a> Conservancy Blog{% if author %} &mdash; {{ author.formal_name }}{% endif %}</h2>
2010-10-04 13:52:04 +00:00
{% if authors or tags %}
<p>Displaying posts
{% if authors %}by {% for author in authors %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}<a href="{{ author.biography_url }}">{{ author.formal_name }}</a>{% if forloop.revcounter == 2 %} and {% endif %}{% endfor %}{% endif %}
{% if tags %}tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if forloop.revcounter == 2 %} or {% endif %}{% endfor %}{% endif %}
2010-10-04 13:52:04 +00:00
</p>
{% endif %}
{% for entry in blog_entries %}
{% include "blog/entry_partial.html" with entry=entry only %}
2010-10-04 13:52:04 +00:00
{% endfor %}
<p>
{% if blog_entries.has_next %}<a class="next_page_button" href="?page={{ blog_entries.next_page_number }}{% if query_string %}&amp;{{ query_string|escape }}{% endif %}">Next page (older) &raquo;</a>{% endif %}
{% if blog_entries.has_previous %}<a href="?page={{ blog_entries.previous_page_number }}{% if query_string %}&amp;{{ query_string|escape }}{% endif %}">&laquo; Previous page (newer)</a>{% endif %}
</p>
{% if blog_entries.paginator.num_pages > 1 %}<p class="pagination_list"> {% for pagenum in blog_entries.paginator.page_range %}{% if pagenum == blog_entries.number %}[{{ pagenum }}]{% else %}<a href="?page={{ pagenum }}">{{ pagenum }}</a>{% endif %} {% endfor %}</p>{% endif %}
2010-10-04 13:52:04 +00:00
<div class="clear"></div>
{% endblock %}