mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
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:
parent
96f7a4c727
commit
33dc7127bf
5 changed files with 28 additions and 20 deletions
|
@ -10,12 +10,12 @@
|
|||
<url>http://bitcoin.org/img/logo_rss.png</url>
|
||||
<link>http://bitcoin.org/en/version-history</link>
|
||||
</image>
|
||||
{% catpage_for p in site.pages reversed sort_by:date category:release %}
|
||||
{% filter_for p in site.pages reversed sort_by:date category:release %}
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue