diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-17 09:51:25 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-17 09:51:25 +0200 |
| commit | db0f310c6298691c7ac57f4b34201fc72eab1c44 (patch) | |
| tree | 314248b8281bd6b4124986255e6eae6ce8dfaec6 /layouts | |
| parent | 94f67e5829a7239ced73c3f18072a761a4ced176 (diff) | |
| download | gohugo-theme-ed-db0f310c6298691c7ac57f4b34201fc72eab1c44.tar.gz | |
Remove redundand CDATAs
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/home.atom.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/home.atom.xml b/layouts/_default/home.atom.xml index ff6cda4..1dda16b 100644 --- a/layouts/_default/home.atom.xml +++ b/layouts/_default/home.atom.xml @@ -2,14 +2,14 @@ <feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xml:lang="{{ site.LanguageCode }}" - xml:base="{{site.BaseURL }}"> - <title>{{ printf "<![CDATA[%s]]>" site.Title | safeHTML }}</title> - {{ with site.Params.description }}<subtitle type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</subtitle>{{ end }} + xml:base="{{ site.BaseURL }}"> + <title>{{ site.Title }}</title> + {{ with site.Params.description }}<subtitle type="html">{{ . }}</subtitle>{{ end }} {{ with site.Home.OutputFormats.Get "Atom" }}<link href="{{ .RelPermalink }}" rel="self" type="{{ .MediaType.Type | html }}" />{{ end }} {{ $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }}{{ $logo = $logo.Resize "96x96" }}<icon>{{$logo.RelPermalink}}</icon> <logo>{{$logo.RelPermalink}}</logo> {{ with site.Author.name }}<author> - <name>{{ printf "<![CDATA[%s]]>" . | safeHTML }}</name> + <name>{{ . }}</name> {{ with site.Author.email }}<email>{{ . }}</email>{{end}} </author>{{end}} {{ with site.Params.Copyright }}<rights type="text">{{ .}}</rights>{{end}} @@ -42,7 +42,7 @@ {{- end }} {{ end }} <summary type="html"> - {{ printf "<![CDATA[%s]]>" .Summary | safeHTML }} + {{ printf "<![CDATA[%s]]>" .Summary | chomp | safeHTML }} </summary> </entry> {{- end }} |
