1

Correction pour validation HTML + CSS + RSS

This commit is contained in:
2026-04-04 23:27:51 +02:00
parent fdc3b58ce0
commit 7b288f6bc2
32 changed files with 496 additions and 229 deletions

View File

@@ -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>