Permalink
Browse files

Merge pull request #160 from ryanpitts/learning

only show 'more' header if there are actually more articles in list :/
  • Loading branch information...
2 parents 953eee1 + 392365f commit 2e2ed45e6bed22872539ea2389c69c074831aed9 @ryanpitts ryanpitts committed Mar 7, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 source/articles/templates/articles/article_list_learning.html
@@ -9,6 +9,7 @@
<p class="intro">In-depth case studies by the best journalist-developers in the field. <span class="tinyhide">Get schooled on how journalist-developers find and build web-native stories, what kinds of questions they ask of data, how choices in presenting the news affects how it’s interpreted, and the ethics they encounter along the way.</span></p>
+{% if lead_promo %}
<div class="page-block lead promo">
{% with article=lead_promo %}
{# lead promo item goes in here #}
@@ -29,9 +30,11 @@
</div>
{% endfor %}
</div>
+{% endif %}
-
-<p class="intro"><b>More case studies:</b></p>
+{% if lead_promo and page.object_list|length > 3 %}
+ <p class="intro"><b>More case studies:</b></p>
+{% endif %}
{% for article in page.object_list %}
{# if we have promos on this page, don't include those articles in list #}

0 comments on commit 2e2ed45

Please sign in to comment.