Remove trailing slash on void HTML elements (#2009)

According to the W3C's HTML validator, trailing slashes in void-element have no effect,
and might interact badly in some cases.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-11-21 00:21:25 +01:00 committed by GitHub
parent 69e162e5fe
commit c16788f991
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 12 additions and 11 deletions

View file

@ -4,5 +4,5 @@
*/}}
{{ with index .Page.RegularPages.ByDate.Reverse 0 }}
<meta http-equiv="refresh" content="0; url={{ .RelPermalink }}" />
<meta http-equiv="refresh" content="0; url={{ .RelPermalink }}">
{{ end }}

View file

@ -39,7 +39,7 @@
</summary>
<hr/>
<hr>
{{ if (index $definition "x-addedInMatrixVersion") }}
{{ partial "added-in" (dict "v" (index $definition "x-addedInMatrixVersion")) }}

View file

@ -45,8 +45,8 @@
{{- $fallback := $highRes.Resize (printf "%sx png" $width) -}}
<picture>
<source srcset="{{ $lowRes.RelPermalink }}, {{ $highRes.RelPermalink }} 2x" type="image/webp" />
<img src="{{ $fallback.RelPermalink }}" alt="{{ $alt }}" width="{{ $width }}" height="{{ $height }}" loading="lazy" />
<source srcset="{{ $lowRes.RelPermalink }}, {{ $highRes.RelPermalink }} 2x" type="image/webp">
<img src="{{ $fallback.RelPermalink }}" alt="{{ $alt }}" width="{{ $width }}" height="{{ $height }}" loading="lazy">
</picture>
{{- else -}}
{{- errorf "diagram %s not found" $path -}}

View file

@ -28,7 +28,7 @@
</h1>
</summary>
<hr/>
<hr>
{{ $event.description | markdownify }}