From 65749d8987eeede2f3d7d01a7b283eefa15c8861 Mon Sep 17 00:00:00 2001 From: Duncan Lock Date: Thu, 11 Jul 2013 13:15:43 -0700 Subject: [PATCH] Improved the example template code in the readme The old example wasn't great - you end up with the heading as the first item in the list, and the if statement is un-necessarily long. --- multi_part/Readme.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/multi_part/Readme.md b/multi_part/Readme.md index f6caf93..51c9702 100644 --- a/multi_part/Readme.md +++ b/multi_part/Readme.md @@ -13,20 +13,12 @@ to display other parts of current post. For example: {% if article.metadata.parts_articles %} +

This post is part of a series:

    -
  1. Post parts
  2. - {% for part_article in article.metadata.parts_articles %} - {% if part_article == article %} -
  3. - {{ part_article.title }} - + {% for part_article in article.metadata.parts_articles %} +
  4. + {{ part_article.title }}
  5. - {% else %} -
  6. - {{ part_article.title }} - -
  7. - {% endif %} - {% endfor %} + {% endfor %}
{% endif %}