Improve catpage_for.rb

Allow to filter pages with many pages variables
Allow to filter pages using dynamic variables as values
This commit is contained in:
Saivann 2013-06-21 21:49:20 -04:00
parent 96f7a4c727
commit 33dc7127bf
5 changed files with 28 additions and 20 deletions

View file

@ -10,12 +10,12 @@
<url>http://bitcoin.org/img/logo_rss.png</url>
<link>http://bitcoin.org/en/alerts</link>
</image>
{% catpage_for p in site.pages reversed sort_by:date category:alert %}
{% filter_for p in site.pages reversed sort_by:date category:alert %}
<item>
<title>{{ p.title }}</title>
<link>http://bitcoin.org{{ p.url | replace:'.html','' }}</link>
<pubDate>{{ p.date | date: "%a, %d %b %Y" }}</pubDate>
</item>
{% endcatpage_for %}
{% endfilter_for %}
</channel>
</rss>