fix: HTML errors
This commit is contained in:
parent
c158ac525d
commit
c7cfdcdb5b
4 changed files with 25 additions and 15 deletions
|
@ -11,15 +11,24 @@
|
||||||
<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 }}">
|
||||||
<link class="u-email" rel="me" href="mailto:me+bg@bengoldsworthy.net">
|
<link class="u-email" rel="me" href="mailto:me+bg@bengoldsworthy.net">
|
||||||
<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 }}">
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
)
|
)
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -15,23 +15,22 @@
|
||||||
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"
|
||||||
/>
|
/>
|
||||||
</picture>
|
</picture>
|
||||||
|
|
Loading…
Reference in a new issue