mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-16 16:54:41 +00:00
Remove trailing whitespace and tabs from RSS templates
The rss templates had some tab characters mixed in with the spaces. Additionally there would end up being trailing whitespace in output rss feeds, which looks red in git diff.
This commit is contained in:
parent
f3cb0be35a
commit
5f42590144
4 changed files with 28 additions and 26 deletions
10
tpl/tplimpl/embedded/templates.autogen.go
generated
10
tpl/tplimpl/embedded/templates.autogen.go
generated
|
@ -43,9 +43,9 @@ var EmbeddedTemplates = [][2]string{
|
|||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{- with .OutputFormats.Get "RSS" -}}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{ range $pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
|
@ -57,7 +57,8 @@ var EmbeddedTemplates = [][2]string{
|
|||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>`},
|
||||
</rss>
|
||||
`},
|
||||
{`_default/sitemap.xml`, `{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
|
@ -79,7 +80,8 @@ var EmbeddedTemplates = [][2]string{
|
|||
/>{{ end }}
|
||||
</url>
|
||||
{{ end }}
|
||||
</urlset>`},
|
||||
</urlset>
|
||||
`},
|
||||
{`_default/sitemapindex.xml`, `{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{{ range . }}
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{- with .OutputFormats.Get "RSS" -}}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{ range $pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
|
|
Loading…
Reference in a new issue