forked from Bunteshaus/bunteshaus.de
make news catch all in rss feed
This commit is contained in:
parent
608f089ea7
commit
f1cb66d154
|
@ -6,6 +6,9 @@
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $pages = $pctx.Pages -}}
|
{{- $pages = $pctx.Pages -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- if eq .Section "news" -}}
|
||||||
|
{{- $pages = where .Site.RegularPages "Type" "in" site.Params.mainSections -}}
|
||||||
|
{{- end -}}
|
||||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||||
{{- if ge $limit 1 -}}
|
{{- if ge $limit 1 -}}
|
||||||
{{- $pages = $pages | first $limit -}}
|
{{- $pages = $pages | first $limit -}}
|
||||||
|
|
|
@ -16,16 +16,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="infobox">
|
<div class="infobox">
|
||||||
{{ if or (eq .Section "news") (eq .Section "orga") }}
|
|
||||||
<a href="/index.xml">RSS</a><br><br>
|
|
||||||
{{ else }}
|
|
||||||
{{- with .OutputFormats.Get "rss" -}}
|
{{- with .OutputFormats.Get "rss" -}}
|
||||||
{{- if .Permalink -}}
|
{{- if .Permalink -}}
|
||||||
{{- printf `<a href="%s">` .Permalink | safeHTML -}}
|
{{- printf `<a href="%s">` .Permalink | safeHTML -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
RSS</a><br><br>
|
RSS</a><br><br>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<a href="https://schlomp.space/Bunteshaus/bunteshaus.de">Sourcecode</a>
|
<a href="https://schlomp.space/Bunteshaus/bunteshaus.de">Sourcecode</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user