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="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 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-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-logo" rel="icon" sizes="192x192" href="/images/icon.png">
|
||||
<link class="u-key" rel="author" href="{{ .Site.Params.keyfile }}">
|
||||
<link class="u-logo" rel="icon" sizes="192x192" href="/images/icon.png">
|
||||
{{- with .Site.Params.keyfile -}}
|
||||
<link class="u-key" rel="author" href="{{ . }}">
|
||||
{{- end -}}
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
{{- end -}}
|
||||
)
|
||||
{{- end -}}
|
||||
<p>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -75,8 +75,10 @@
|
|||
<article class="site-content__body site-content__body--chart">
|
||||
<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">
|
||||
{{- partial "util/render_recursive_list.html" ( dict "sc" $ "pc" . "items" $.Site.Data.locations "schemaType" "Place" ) -}}
|
||||
{{- . -}}
|
||||
</section>
|
||||
{{- end -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
|
@ -15,23 +15,22 @@
|
|||
class="picture"
|
||||
itemprop="image"
|
||||
>
|
||||
{{- if $isResizable -}}
|
||||
<source srcset="{{- ($src.Resize "1200x webp").RelPermalink -}}" />
|
||||
<source srcset="{{- ($src.Resize "800x png").RelPermalink -}}" media="(max-width: 800px)"/>
|
||||
{{- end -}}
|
||||
|
||||
{{ if $isResizable -}}
|
||||
<source srcset="{{- ($src.Resize "1200x webp").RelPermalink -}}" />
|
||||
<source srcset="{{- ($src.Resize "800x png").RelPermalink -}}" media="(max-width: 800px)"/>
|
||||
{{- end }}
|
||||
<img
|
||||
class="u-photo picture__image"
|
||||
{{- if not $isResizable -}}
|
||||
{{ if not $isResizable -}}
|
||||
src="{{- $src.RelPermalink -}}"
|
||||
{{- else -}}
|
||||
src="{{- ($src.Resize "1200x webp").RelPermalink -}}"
|
||||
width="{{- $src.Width -}}"
|
||||
height="{{- $src.Height -}}"
|
||||
{{- end -}}
|
||||
{{- with $src.Params.alt -}}alt="{{- . -}}"{{- end -}}
|
||||
{{- with $src.Params.title -}}title="{{- . -}}" {{- end -}}
|
||||
{{- end }}
|
||||
{{ with $src.Params.alt -}}alt="{{- . -}}"{{- end }}
|
||||
{{ with $src.Params.title -}}title="{{- . -}}" {{- end }}
|
||||
loading="lazy"
|
||||
role="img"
|
||||
/>
|
||||
</picture>
|
||||
</picture>
|
||||
|
|
Loading…
Reference in a new issue