Files
@ 170aa38bb5c3
Branch filter:
Location: website/www/conservancy/templates/blog/entry_list.html - annotation
170aa38bb5c3
1.7 KiB
text/html
blog: Headlines clear floats.
This avoids a situation where multiple summaries have floats that stack on
top of each other vertically, which end up getting far away from the actual
text.
In order to make this work, we had to change the styling of #mainContent on
blog pages (and others with a sidebar). Otherwise, headlines with
class="clear" would clear the sidebar as well.
This avoids a situation where multiple summaries have floats that stack on
top of each other vertically, which end up getting far away from the actual
text.
In order to make this work, we had to change the styling of #mainContent on
blog pages (and others with a sidebar). Otherwise, headlines with
class="clear" would clear the sidebar as well.
79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 79140d46a5c8 8f4c8a69d6f8 e7c1171b6e3d 79140d46a5c8 79140d46a5c8 79140d46a5c8 8f4c8a69d6f8 c564bb6ac5bd 8f4c8a69d6f8 9c090f2c27f4 79140d46a5c8 79140d46a5c8 79140d46a5c8 | {% extends "base_blog.html" %}
{% block subtitle %}Conservancy Blog - {% endblock %}
{% block content %}
<h2><a href="/feeds/blog/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> Conservancy Blog{% if author %} — {{ author.formal_name }}{% endif %}</h2>
{% 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>{% ifequal forloop.revcounter 2 %} and {% endifequal %}{% 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>{% ifequal forloop.revcounter 2 %} or {% endifequal %}{% endfor %}{% endif %}
</p>
{% endif %}
{% for entry in blog_entries %}
{% include "blog/entry_partial.html" with entry=entry only %}
{% endfor %}
<p>
{% if blog_entries.has_next %}<a class="next_page_button" href="?page={{ blog_entries.next_page_number }}{% if query_string %}&{{ query_string|escape }}{% endif %}">Next page (older) »</a>{% endif %}
{% if blog_entries.has_previous %}<a href="?page={{ blog_entries.previous_page_number }}{% if query_string %}&{{ query_string|escape }}{% endif %}">« 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 %}{% ifequal pagenum blog_entries.number %}[{{ pagenum }}]{% else %}<a href="?page={{ pagenum }}">{{ pagenum }}</a>{% endifequal %} {% endfor %}</p>{% endif %}
<div class="clear"></div>
{% endblock %}
|