diff options
author | mms <git@sapka.me> | 2024-11-15 23:04:10 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2024-11-15 23:04:10 +0100 |
commit | 05f752c45080731cbfdf48461b6ca1746a4a7e81 (patch) | |
tree | da25fc318c3f8e3f3b8c185264739a83a74bc168 /themes/24-unification/layouts/_default/rss.xml | |
parent | a697766000ef88873c4bf32de22f50f65be5121b (diff) |
feat:move rest of br
Diffstat (limited to 'themes/24-unification/layouts/_default/rss.xml')
-rw-r--r-- | themes/24-unification/layouts/_default/rss.xml | 7 |
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 }} |