fix(check): fix some html check bugs
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<link href="{{ .Permalink }}"/>
|
||||
{{- if not .Date.IsZero -}}
|
||||
<updated>
|
||||
{{- .Date.Format "02-01-2006T15:04:05-07:00" | safeHTML -}}
|
||||
{{- .Date.Format "02-01-2006T15:04:05-07:00" -}}
|
||||
</updated>
|
||||
{{- end -}}
|
||||
<id>
|
||||
@@ -21,9 +21,7 @@
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{- range first 15 (where .Data.Pages "Type" "in" .Site.Params.mainSections) -}}
|
||||
<entry>
|
||||
<title type="html">
|
||||
{{- printf "<![CDATA[%s]]>" .Title | safeHTML -}}
|
||||
</title>
|
||||
<title type="html"><![CDATA[{{ .Title -}}]]></title>
|
||||
<link href="{{ .Permalink }}"/>
|
||||
<id>
|
||||
{{- .Permalink -}}
|
||||
@@ -36,14 +34,12 @@
|
||||
</author>
|
||||
{{- end -}}
|
||||
<published>
|
||||
{{- .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}
|
||||
{{- .Date.Format "2006-01-02T15:04:05-07:00" -}}
|
||||
</published>
|
||||
<updated>
|
||||
{{- .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}
|
||||
{{- .Lastmod.Format "2006-01-02T15:04:05-07:00" -}}
|
||||
</updated>
|
||||
<content type="html">
|
||||
{{- printf "<![CDATA[%s]]>" .Content | safeHTML -}}
|
||||
</content>
|
||||
<content type="html"><![CDATA[{{- .Content -}}]]></content>
|
||||
</entry>
|
||||
{{- end -}}
|
||||
</feed>
|
||||
|
||||
Reference in New Issue
Block a user