pelican/docs
Eric 0a6294a2a3 More clear example for related posts
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 %}
			<ul>
			{% for related_post in article.related_posts|dictsort(false, 'url')  %}
				{% if not (LASTARTICLE == related_post.url) %}
				   <li><a href="{{ related_post.url }}">{{ related_post.title }}</a></li>
				{% endif %}
				{% set LASTARTICLE = related_post.url %}
			{% endfor %}
			</ul>
		{% endif %}

the dicsort does not work (is this not a dict, I'm not a python guy so I'm just hacking at it.
2013-01-20 17:27:28 -06:00
..
_static add some docs written a long time ago 2011-11-30 21:11:50 +01:00
_themes update the theme (logo) 2011-04-26 00:40:16 +01:00
fr revert #523 2012-12-03 22:35:11 +01:00
changelog.rst Merge pull request #577 from davidjb/import-improvements-slug 2012-12-11 03:52:12 -08:00
conf.py the repositories are now hosted under 'getpelican' 2012-07-27 00:27:08 +02:00
contribute.rst update contribute.rst doc 2012-11-28 00:29:52 +01:00
faq.rst Doc fixes and improvements 2012-12-03 16:31:55 -08:00
getting_started.rst Doc fixes and improvements 2012-12-03 16:31:55 -08:00
importer.rst Fixed a typo 2013-01-07 10:49:51 +01:00
index.rst Doc fixes and improvements 2012-12-03 16:31:55 -08:00
internals.rst Add asciidoc reader support 2012-12-02 10:20:13 -08:00
Makefile Add the docs 2010-10-13 23:08:08 +01:00
pelican-themes.rst Eliminate extraneous whitespace 2012-10-12 23:01:50 +02:00
plugins.rst More clear example for related posts 2013-01-20 17:27:28 -06:00
report.rst Eliminate extraneous whitespace 2012-10-12 23:01:50 +02:00
settings.rst Doc fixes and improvements 2012-12-03 16:31:55 -08:00
themes.rst Reverted FEED_ATOM and FEED_RSS to their original behaviour and added FEED_ALL_ATOM and FEED_ALL_RSS 2012-11-12 23:01:16 +01:00
tips.rst Improve Publishing to GitHub section of the doc 2013-01-01 01:01:19 +01:00