summaryrefslogtreecommitdiff
path: root/themes/24-unification/layouts/_default/rss.xml
diff options
context:
space:
mode:
Diffstat (limited to 'themes/24-unification/layouts/_default/rss.xml')
-rw-r--r--themes/24-unification/layouts/_default/rss.xml7
1 files changed, 1 insertions, 6 deletions
diff --git a/themes/24-unification/layouts/_default/rss.xml b/themes/24-unification/layouts/_default/rss.xml
index e509c52..8d69382 100644
--- a/themes/24-unification/layouts/_default/rss.xml
+++ b/themes/24-unification/layouts/_default/rss.xml
@@ -24,7 +24,7 @@
{{- with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end }}
- {{- range $pages.ByPublishDate.Reverse}}
+ {{- range $pages.ByPublishDate.Reverse.Limit 30}}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
@@ -32,13 +32,8 @@
<author>mms</author>
<guid>{{ crypto.MD5 .Date }}</guid>
<description>
- {{ if in .Page.Params.Categories "blog" }}
{{ safeHTML "<![CDATA[" }}{{ replace .Content "\n\n" "\n" | safeHTML }}
<hr><p style="font-style:italic">Reply via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]>
- {{ else }}
- {{ safeHTML "<![CDATA[" }}{{ partial "external_link" . }}
- <hr><p style="font-style:italic">Reply via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]>
- {{ end }}
</description>
</item>
{{- end }}