moved rss layout

This commit is contained in:
Gabriele Musco 2021-10-31 21:23:50 +01:00
parent 8098182b57
commit 0eb66543c7
No known key found for this signature in database
GPG Key ID: 0587A5D65B5DC99E
1 changed files with 4 additions and 4 deletions

View File

@ -22,12 +22,12 @@
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<icon>{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}</icon>
{{- with .OutputFormats.Get "RSS" -}} {{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}} {{- end -}}
<icon>{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}</icon>
{{ range $pages }} {{ range $pages }}
{{ if not .Norss }} {{ if not ( .Params.norss | default false) }}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
@ -35,8 +35,8 @@
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description> <description>{{ .Summary | html }}</description>
{{ if .Image }} {{ if .Params.image }}
<media:thumbnail url="{{ .Image | absURL }}" /> <media:thumbnail url="{{ .Params.image | absURL }}" />
{{ end }} {{ end }}
</item> </item>
{{ end }} {{ end }}