Squashed: fix feed validation errors in template
All checks were successful
the build was successful
All checks were successful
the build was successful
This commit is contained in:
parent
5fdac9195c
commit
21be0a974b
@ -1,22 +1,28 @@
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link href="{{ .Permalink }}index.xml" rel="self"/>
|
||||
<link href="{{ .Permalink }}feed.atom.xml" rel="self"/>
|
||||
<link href="{{ .Permalink }}"/>{{ if not .Date.IsZero }}
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
|
||||
<id>{{ .Permalink }}</id>{{ with .Site.Author.name }}
|
||||
<id>{{ .Permalink }}</id>
|
||||
{{ with .Site.Params.author }}
|
||||
{{ $author := index $.Site.Data.authors . }}
|
||||
<author>
|
||||
<name>{{.}}</name>{{ with $.Site.Author.email }}
|
||||
<email>{{.}}</email>{{end}}
|
||||
</author>{{end}}
|
||||
<name>{{ $author.name }}</name>
|
||||
<email>{{ $author.email }}</email>
|
||||
</author>
|
||||
{{end}}
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{ range where .Pages "Type" "post" }}
|
||||
<entry>
|
||||
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
|
||||
<link href="{{ .Permalink }}"/>
|
||||
<id>{{ .Permalink }}</id>{{ with .Site.Params.Author }}
|
||||
<id>{{ .Permalink }}</id>
|
||||
{{ with .Params.Author }}
|
||||
{{ $author := index $.Site.Data.authors . }}
|
||||
<author>
|
||||
<name>{{.}}</name>
|
||||
</author>{{end}}
|
||||
<name>{{ $author.name }}</name>
|
||||
</author>
|
||||
{{end}}
|
||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
||||
|
@ -1,22 +1,28 @@
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link href="{{ .Permalink }}index.xml" rel="self"/>
|
||||
<link href="{{ .Permalink }}feed.atom.xml" rel="self"/>
|
||||
<link href="{{ .Permalink }}"/>{{ if not .Date.IsZero }}
|
||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{ end }}
|
||||
<id>{{ .Permalink }}</id>{{ with .Site.Author.name }}
|
||||
<id>{{ .Permalink }}</id>
|
||||
{{ with .Site.Params.author }}
|
||||
{{ $author := index $.Site.Data.authors . }}
|
||||
<author>
|
||||
<name>{{.}}</name>{{ with $.Site.Author.email }}
|
||||
<email>{{.}}</email>{{end}}
|
||||
</author>{{end}}
|
||||
<name>{{ $author.name }}</name>
|
||||
<email>{{ $author.email }}</email>
|
||||
</author>
|
||||
{{end}}
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{ range where .Pages "Type" "post" }}
|
||||
<entry>
|
||||
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
|
||||
<link href="{{ .Permalink }}"/>
|
||||
<id>{{ .Permalink }}</id>{{ with .Site.Params.Author }}
|
||||
<id>{{ .Permalink }}</id>
|
||||
{{ with .Params.Author }}
|
||||
{{ $author := index $.Site.Data.authors . }}
|
||||
<author>
|
||||
<name>{{.}}</name>
|
||||
</author>{{end}}
|
||||
<name>{{ $author.name }}</name>
|
||||
</author>
|
||||
{{end}}
|
||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
||||
|
@ -23,12 +23,13 @@
|
||||
</time>
|
||||
</span>
|
||||
|
||||
{{ range .Param "authors" }}
|
||||
{{ $name := . }}
|
||||
{{ with $.Site.GetPage (printf "/authors/%s" $name | urlize) }}
|
||||
{{ with .Params.Author }}
|
||||
{{ $author := index $.Site.Data.authors . }}
|
||||
|
||||
{{ with $.Site.GetPage (printf "/author/%s" $author.name | urlize) }}
|
||||
<span class="post-footer__button">
|
||||
<i class="fas fa-user post-footer__icon"></i>
|
||||
<a class="post-footer__link" href="{{ .RelPermalink }}" title="Alle Artikel des Autors">{{ $name }}</a>
|
||||
<a class="post-footer__link" href="{{ .RelPermalink }}" title="Alle Artikel des Autors">{{ $author.name }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user