Skip to content

Commit bf4d696

Browse files
committed
Include 10 most recent parts in rss feed.
1 parent c9d69ab commit bf4d696

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

feed.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ layout: none
88
<description>{{ site.description | xml_escape }}</description>
99
<link>{{site.url}}{{site.baseurl}}</link>
1010
<atom:link href="{{site.url}}{{site.baseurl}}/feed.xml" rel="self" type="application/rss+xml" />
11-
{% for part in site.parts limit:10 %}
11+
{% assign limit = 10 %}
12+
{% assign offset = (site.parts.size | minus: limit) %}
13+
{% for part in site.parts offset:offset limit:limit %}
1214
<item>
1315
<title>{{ part.title | xml_escape }}</title>
1416
<description>{{ part.content | xml_escape }}</description>

0 commit comments

Comments
 (0)