limit numbers of items
This commit is contained in:
parent
5a507e03b0
commit
49c64fe2dc
|
@ -14,7 +14,7 @@
|
||||||
<link>{{ site.url }}/alink47.xml</link>
|
<link>{{ site.url }}/alink47.xml</link>
|
||||||
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
|
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
|
||||||
<lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate>
|
<lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate>
|
||||||
{% assign feed_items = site.feed_items | default: 10 %}{% for item in site.data.alink47.alink47 reversed %}{% assign sitetimexml = site.time | date: "%s" %}{% assign now = item.date | date: "%s" %}{% if now <= sitetimexml %}
|
{% assign feed_items = site.feed_items | default: 10 %}{% for item in site.data.alink47.alink47 reversed limit:10 %}{% assign sitetimexml = site.time | date: "%s" %}{% assign now = item.date | date: "%s" %}{% if now <= sitetimexml %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ item.name | xml_escape }}</title>
|
<title>{{ item.name | xml_escape }}</title>
|
||||||
<description>{{ item.content | xml_escape }}</description>
|
<description>{{ item.content | xml_escape }}</description>
|
||||||
|
|
2
wim.xml
2
wim.xml
|
@ -14,7 +14,7 @@
|
||||||
<link>{{ site.url }}/wim.xml</link>
|
<link>{{ site.url }}/wim.xml</link>
|
||||||
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
|
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
|
||||||
<lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate>
|
<lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate>
|
||||||
{% assign feed_items = site.feed_items | default: 10 %}{% for post in site.data.wim.wim reversed %}{% assign sitetimexml = site.time | date: "%s" %}{% assign now = post.date | date: "%s" %}{% if now <= sitetimexml %}
|
{% assign feed_items = site.feed_items | default: 10 %}{% for post in site.data.wim.wim reversed limit:10 %}{% assign sitetimexml = site.time | date: "%s" %}{% assign now = post.date | date: "%s" %}{% if now <= sitetimexml %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ post.name | xml_escape }}</title>
|
<title>{{ post.name | xml_escape }}</title>
|
||||||
{% if post.author.name %}<dc:creator>{{ post.author.name | xml_escape }}</dc:creator>{% endif %}
|
{% if post.author.name %}<dc:creator>{{ post.author.name | xml_escape }}</dc:creator>{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue