fix: HTML errors

This commit is contained in:
Ben Goldsworthy 2025-01-05 17:28:25 +01:00
parent c158ac525d
commit c7cfdcdb5b
Signed by: Rumperuu
SSH key fingerprint: SHA256:e5XfzNOr9UvWpEzyLfw0GtTMZWIFh3NmxH+/qQIi3xE
4 changed files with 25 additions and 15 deletions

View file

@ -11,7 +11,14 @@
<meta name="description" content="{{ block "head-description" . }}{{ $.Site.Params.description | html }}{{ end }}"> <meta name="description" content="{{ block "head-description" . }}{{ $.Site.Params.description | html }}{{ end }}">
<meta name="twitter:dnt" content="on"> <meta name="twitter:dnt" content="on">
<title itemprop="name">{{- block "title" . -}}{{- .Site.Title }} | {{ .Site.Params.tagline -}}{{- end -}}</title> <title itemprop="name">
{{- block "title" . -}}
{{- .Site.Title -}}
{{- with .Site.Params.tagline -}}
{{- printf " | %s" . -}}
{{- end -}}
{{- end -}}
</title>
<link rel="license" href="{{ block "head-license" . }}https://creativecommons.org/publicdomain/zero/1.0/{{ end }}"> <link rel="license" href="{{ block "head-license" . }}https://creativecommons.org/publicdomain/zero/1.0/{{ end }}">
<link class="u-url u-uid" rel="me" href="{{ .Site.Home.Permalink }}"> <link class="u-url u-uid" rel="me" href="{{ .Site.Home.Permalink }}">
@ -19,7 +26,9 @@
<link class="u-url" rel="me" href="https://github.com/Rumperuu"> <link class="u-url" rel="me" href="https://github.com/Rumperuu">
<link class="u-url" rel="me" href="https://news.ycombinator.com/user?id=Rumperuu"> <link class="u-url" rel="me" href="https://news.ycombinator.com/user?id=Rumperuu">
<link class="u-logo" rel="icon" sizes="192x192" href="/images/icon.png"> <link class="u-logo" rel="icon" sizes="192x192" href="/images/icon.png">
<link class="u-key" rel="author" href="{{ .Site.Params.keyfile }}"> {{- with .Site.Params.keyfile -}}
<link class="u-key" rel="author" href="{{ . }}">
{{- end -}}
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">

View file

@ -85,7 +85,7 @@
{{- end -}} {{- end -}}
) )
{{- end -}} {{- end -}}
<p> </p>
{{ end }} {{ end }}
</div> </div>

View file

@ -75,8 +75,10 @@
<article class="site-content__body site-content__body--chart"> <article class="site-content__body site-content__body--chart">
<div id="map" style="width: 100%; height: 500px; margin: 0; display: block;"></div> <div id="map" style="width: 100%; height: 500px; margin: 0; display: block;"></div>
{{- with ( partial "util/render_recursive_list.html" ( dict "sc" $ "pc" . "items" $.Site.Data.locations "schemaType" "Place" ) ) -}}
<section style="grid-area: section-content"> <section style="grid-area: section-content">
{{- partial "util/render_recursive_list.html" ( dict "sc" $ "pc" . "items" $.Site.Data.locations "schemaType" "Place" ) -}} {{- . -}}
</section> </section>
{{- end -}}
</article> </article>
{{ end }} {{ end }}

View file

@ -15,22 +15,21 @@
class="picture" class="picture"
itemprop="image" itemprop="image"
> >
{{- if $isResizable -}} {{ if $isResizable -}}
<source srcset="{{- ($src.Resize "1200x webp").RelPermalink -}}" /> <source srcset="{{- ($src.Resize "1200x webp").RelPermalink -}}" />
<source srcset="{{- ($src.Resize "800x png").RelPermalink -}}" media="(max-width: 800px)"/> <source srcset="{{- ($src.Resize "800x png").RelPermalink -}}" media="(max-width: 800px)"/>
{{- end -}} {{- end }}
<img <img
class="u-photo picture__image" class="u-photo picture__image"
{{- if not $isResizable -}} {{ if not $isResizable -}}
src="{{- $src.RelPermalink -}}" src="{{- $src.RelPermalink -}}"
{{- else -}} {{- else -}}
src="{{- ($src.Resize "1200x webp").RelPermalink -}}" src="{{- ($src.Resize "1200x webp").RelPermalink -}}"
width="{{- $src.Width -}}" width="{{- $src.Width -}}"
height="{{- $src.Height -}}" height="{{- $src.Height -}}"
{{- end -}} {{- end }}
{{- with $src.Params.alt -}}alt="{{- . -}}"{{- end -}} {{ with $src.Params.alt -}}alt="{{- . -}}"{{- end }}
{{- with $src.Params.title -}}title="{{- . -}}" {{- end -}} {{ with $src.Params.title -}}title="{{- . -}}" {{- end }}
loading="lazy" loading="lazy"
role="img" role="img"
/> />