Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-13 02:20:33 +02:00
parent ea05b39ddf
commit b5c0819bfa
3 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}

View File

@ -1,26 +1,26 @@
<head>
<title>{{ .Site.Title }} {{ with .Title }}- {{ . }} {{ end }}</title>
<link rel="stylesheet" type="text/css" href="{{ "css/fonts.css" | relURL }}" />
<link rel="stylesheet" type="text/css" href="{{ "css/fontawesome.css" | relURL }}" />
<link rel="stylesheet" type="text/css" href="{{ "css/fonts.css" | relURL }}">
<link rel="stylesheet" type="text/css" href="{{ "css/fontawesome.css" | relURL }}">
{{ $options := dict "transpiler" "libsass" "targetPath" "css/styles.css" -}}
{{ $style := resources.Get "styles.scss" | toCSS $options | minify | fingerprint -}}
<link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}">
{{ with resources.Get "css/userstyles.css" }}
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}">
{{ end -}}
<link rel="icon" href="/assets/logo/favicon/favicon.ico" type="image/x-icon" sizes="any" />
<link rel="apple-touch-icon" href="/assets/logo/favicon/apple-touch-icon.png" />
<link rel="manifest" href="/assets/logo/favicon/icon.manifest" />
<link rel="icon" href="/assets/logo/favicon/favicon.ico" type="image/x-icon" sizes="any">
<link rel="apple-touch-icon" href="/assets/logo/favicon/apple-touch-icon.png">
<link rel="manifest" href="/assets/logo/favicon/icon.manifest">
<meta charset="UTF-8">
<meta name="author" content="{{ .Site.Params.Author }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{- range .AlternativeOutputFormats }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{- end }}
<script defer data-domain="ipng.ch" data-api="/api/event" src="/js/script.js"></script>
{{- if eq .Params.asciinema true }}
<link rel="stylesheet" type="text/css" href="{{ "css/asciinema-player.css" | relURL }}" />
<link rel="stylesheet" type="text/css" href="{{ "css/asciinema-player.css" | relURL }}">
<script src="{{ "js/asciinema-player.min.js" | relURL }}"></script>
{{- end }}
</head>

View File

@ -10,7 +10,7 @@
<img src="{{ .Get "src" | relURL }}"
{{- if or (.Get "alt") (.Get "caption") }} alt="{{ with .Get "alt" }}{{ replace . "'" "&#39;" }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
{{- end -}}
/> <!-- Closing img tag -->
> <!-- Closing img tag -->
{{- if .Get "link" }}</a>{{ end -}}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") }}
<figcaption>