From 0a6294a2a3bbd0d1447e1dc1e05b5e4fc2f633d1 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 20 Jan 2013 17:27:28 -0600 Subject: [PATCH] More clear example for related posts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The existing related posts example doesn't show properties for the collection, this could be confusing to individuals who are not programmers, because as it was the code would render five bullet points. I am also looking to add some type of loop control or if statement to the loop to detect duplicate, I tried t a dictionary sort filter through jinja, bu that through an error, the following is not guarantted to work then: {% set LASTARTICLE = "notset" %} {% if article.related_posts %} {% endif %} the dicsort does not work (is this not a dict, I'm not a python guy so I'm just hacking at it. --- docs/plugins.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins.rst b/docs/plugins.rst index 7e09810b..ca9a0dde 100644 --- a/docs/plugins.rst +++ b/docs/plugins.rst @@ -291,7 +291,7 @@ For example:: {% if article.related_posts %} {% endif %}