summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-31 20:01:27 +0100
committerDan McGee <dan@archlinux.org>2013-02-03 20:38:39 +0100
commitb82c7b6a3a0f5b42990ec017bf91e66f71f9bfe2 (patch)
tree2288f74cf6a9fc2b2a52d09395e0116cbbbbc46e /templates
parente969da2d40ed3256a89ff10d627a11e70a451b6a (diff)
downloadarchweb-b82c7b6a3a0f5b42990ec017bf91e66f71f9bfe2.tar.gz
archweb-b82c7b6a3a0f5b42990ec017bf91e66f71f9bfe2.tar.xz
Remove some whitespace from index template
We had a lot going on here in the news section as far as Django template tags go, so remove some whitespace to prevent so many empty lines from being ommitted. This doesn't remove all of it from the generated HTML, but does cut it down significantly. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/public/index.html13
1 files changed, 4 insertions, 9 deletions
diff --git a/templates/public/index.html b/templates/public/index.html
index 6fc9043..1a1a8f2 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -45,8 +45,7 @@
<a href="/feeds/news/" title="Arch News RSS Feed"
class="rss-icon"><img width="16" height="16" src="{% static "rss.png" %}" alt="RSS Feed" /></a>
- {% for news in news_updates %}
- {% if forloop.counter0 < 5 %}
+ {% for news in news_updates %}{% if forloop.counter0 < 5 %}
<h4>
<a href="{{ news.get_absolute_url }}"
title="View full article: {{ news.title }}">{{ news.title }}</a>
@@ -56,8 +55,7 @@
{% if forloop.counter0 == 0 %}{{ news.html|truncatewords_html:300 }}
{% else %}{{ news.html|truncatewords_html:100 }}{% endif %}
</div>
- {% else %}
- {% if forloop.counter0 == 5 %}
+ {% else %}{% if forloop.counter0 == 5 %}
<h3>
<a href="{% url 'news-list' %}"
title="Browse the news archives">Older News</a>
@@ -70,11 +68,8 @@
<a href="{{ news.get_absolute_url }}"
title="View full article: {{ news.title }}">{{ news.title }}</a>
</dd>
- {% if forloop.last %}
- </dl>
- {% endif %}
- {% endif %}
- {% endfor %}
+ {% if forloop.last %}</dl>{% endif %}
+ {% endif %}{% endfor %}
</div>
{% endcache %}
{% endblock %}