Correction pour validation HTML + CSS + RSS
This commit is contained in:
@@ -40,20 +40,22 @@
|
||||
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
|
||||
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
|
||||
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
|
||||
<copyright>{{ . }}</copyright>{{ end }}{{ if gt (len $pages) 0 }}
|
||||
<copyright>{{ . | htmlUnescape }}</copyright>{{ end }}{{ if gt (len $pages) 0 }}
|
||||
<lastBuildDate>{{ (index $pages 0).PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{- with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{- end }}
|
||||
{{- range $pages }}
|
||||
{{- $readMoreLink := printf `<p><a href="%s">Continuer la lecture sur mon blog</a></p>` .Permalink -}}
|
||||
{{- $summary := partial "head/description.html" . -}}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ printf "%s%s" .Summary $readMoreLink | transform.XMLEscape | safeHTML }}</description>
|
||||
{{- with $summary }}
|
||||
<description>{{ . | transform.XMLEscape | safeHTML }}</description>
|
||||
{{- end }}
|
||||
</item>
|
||||
{{- end }}
|
||||
</channel>
|
||||
|
||||
Reference in New Issue
Block a user