Format HTML everywhere

This commit is contained in:
ItsDrike 2022-05-11 14:10:49 +02:00
parent 8955235db0
commit 75a45a192b
No known key found for this signature in database
GPG key ID: B014E761034AF742
18 changed files with 174 additions and 189 deletions

View file

@ -1 +1,3 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}"> <a class="anchor" href="#{{ .Anchor | safeURL }}">#</a> {{ .Text | safeHTML}}</h{{ .Level }}>
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
<a class="anchor" href="#{{ .Anchor | safeURL }}">#</a> {{ .Text | safeHTML}}
</h{{ .Level }}>

View file

@ -7,7 +7,8 @@
{{ end }}
<figure class="text-center">
<img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style='max-width: {{ default "90" .Title }}%;' referrerpolicy="no-referrer" loading="lazy" decoding="async" />
<img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style='max-width: {{ default "90" .Title }}%;'
referrerpolicy="no-referrer" loading="lazy" decoding="async" />
<figcaption class="text-center">
<small>{{ .Text }}</small>
</figcaption>

View file

@ -1,5 +1,6 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}">
@ -13,6 +14,7 @@
{{ block "head_extra" . }}{{ end }}
</head>
<body>
{{ partial "navbar.html" . }}
{{ block "main" . }}{{ end }}
@ -22,4 +24,5 @@
{{ partial "script_async.html" "js/bootstrap.min.js" }}
{{ block "scripts_extra" . }}{{ end }}
</body>
</html>

View file

@ -7,11 +7,7 @@
<h1>{{ .Title }}</h1>
<p>{{ .Content }}</p>
<svg
viewbox="0 0 100 150"
preserveAspectRatio="xMidYMid slice"
height="720" width="480"
>
<svg viewbox="0 0 100 150" preserveAspectRatio="xMidYMid slice" height="720" width="480">
<path class="grid-lines__line grid-lines__line--hor" d="m0,39 l100,0" />
<path class="grid-lines__line grid-lines__line--hor" d="m0,75 l100,0" />
@ -25,24 +21,20 @@
<path class="grid-lines__line grid-lines__line--diag" d="m0,25 l100,100" />
<path class="grid-lines__line grid-lines__line--diag" d="m100,25 l-100,100" />
<path class="grid-lines__line grid-lines__line--diag" d="m86,0 l-72,150" />
<path class="grid-lines__line grid-lines__line--cir"
d="m50,57 c18,0 18,18 18,18
<path class="grid-lines__line grid-lines__line--cir" d="m50,57 c18,0 18,18 18,18
c0,18 -18,18 -18,18
c-18,0 -18,-18 -18,-18
c0,-18 18,-18 18,-18" />
<path class="grid-lines__line grid-lines__line--cir"
d="m50,39 c36,0 36,36 36,36
<path class="grid-lines__line grid-lines__line--cir" d="m50,39 c36,0 36,36 36,36
c0,36 -36,36 -36,36
c-36,0 -36,-36 -36,-36
c0,-36 36,-36 36,-36" />
<path class="grid-lines__line grid-lines__line--cir"
d="m50,21 c54,0 54,54 54,54
<path class="grid-lines__line grid-lines__line--cir" d="m50,21 c54,0 54,54 54,54
c0,54 -54,54 -54,54
c-54,0 -54,-54 -54,-54
c0,-54 54,-54 54,-54" />
<path class="wiz wiz--hair-bg"
d="m50,48
<path class="wiz wiz--hair-bg" d="m50,48
c0,0 6,0 6,2
c0,0 0,3 2,3
c0,0 2,0 2,4
@ -62,15 +54,13 @@
c0,0 2,0 2,-3
c0,0 6,0 6,-2" />
<path class="wiz wiz--head"
d="m50,50
<path class="wiz wiz--head" d="m50,50
c0,0 8,0 8,10
c0,0 0,10 -8,10
c0,0 -8,0 -8,-10
c0,0 0,-10 8,-10" />
<path class="wiz wiz--hair"
d="m50,48
<path class="wiz wiz--hair" d="m50,48
c0,0 6,0 6,2
c0,0 0,3 2,3
c0,0 2,0 2,4
@ -90,8 +80,7 @@
c0,0 0,-6 -4,-3" />
<path class="wiz wiz--hair"
d="m50,52
<path class="wiz wiz--hair" d="m50,52
c0,0 -6,-4 -6,4
c0,0 0,4 -2,4
c0,0 0,4 -2,4
@ -111,8 +100,7 @@
c0,0 -1,0 0,-4
c0,0 2,1 8,-1" />
<path class="wiz wiz--beard"
d="m50,69
<path class="wiz wiz--beard" d="m50,69
c0,0 5,0 5,-1
c0,0 4,0 4,2
c0,0 2,0 1,4
@ -135,15 +123,13 @@
c0,0 0,-4 2,-4
c0,0 0,1 6,1" />
<path class="wiz wiz--mouth"
d="m50,65
<path class="wiz wiz--mouth" d="m50,65
c0,0 5,0 5,3
c0,0 0,2 -5,2
c0,0 -5,0 -5,-2
c0,0 0,-4 5,-3" />
<path class="wiz wiz--mustache"
d="m50,64
<path class="wiz wiz--mustache" d="m50,64
c0,0 4,0 4,1
c0,0 2,0 2,2
c0,0 2,0 1,3
@ -159,34 +145,29 @@
c0,0 -2,-3 1,-3
c0,0 -1,-5 6,-2" />
<path class="wiz wiz--eye wiz--left"
d="m45,60
<path class="wiz wiz--eye wiz--left" d="m45,60
c0,0 2,0 2,1
c0,0 0,1 -2,0
c0,0 -1,0 0,-1" />
<path class="wiz wiz--eye wiz--right"
d="m52,60
<path class="wiz wiz--eye wiz--right" d="m52,60
c0,0 1,-1 2,0
c0,0 0,1 -2,1
c0,0 -1,0 0,-1" />
<path class="wiz wiz--eye-brow wiz--left"
d="m42,61
<path class="wiz wiz--eye-brow wiz--left" d="m42,61
c0,0 0,-3 1,-3
c0,0 3,0 4,2
c0,0 -1,-1 -4,-1
c0,0 -1,0 -1,2" />
<path class="wiz wiz--eye-brow wiz--right"
d="m51,60
<path class="wiz wiz--eye-brow wiz--right" d="m51,60
c0,0 2,-3 4,-3
c0,0 2,0 2,3
c0,0 -1,-2 -2,-2
c0,0 -2,0 -4,2" />
<path class="wiz wiz--sword"
d="m50,30
<path class="wiz wiz--sword" d="m50,30
c0,0 2,2 2,6
l0,50
l6,0
@ -209,8 +190,7 @@
c0,0 0,-3 2,-6
z" />
<path class="wiz wiz--staff"
d="m46,30
<path class="wiz wiz--staff" d="m46,30
l2,0
c0,0 1,0 1,1
l0,2

View file

@ -6,7 +6,7 @@
{{ if not .Parent.IsHome }}
{{ if gt .ReadingTime 2 }}
<span class="pr-2" title='Reading time'>
<span class="pr-2" title="Reading time">
<i class="far fa-clock pr-1 content-detail"></i> {{ .ReadingTime }} minutes
</span>
{{ end }}
@ -16,10 +16,12 @@
{{ end }}
{{ if .Params.tags }}
<span class="pr-2" title="Tags">
<a href="{{ ref . " /tags" }}" class="no-color-change mr-1">
<i class="fas fa-tags small content-detail"></i>
</a>
{{ range $i, $e := .Params.tags }}
<a href="/tags/{{ urlize . }}" class="mr-1">#{{ . }}</a>
{{ end }}
</span>
{{ end }}

View file

@ -12,7 +12,8 @@
<h3 class="text-right">
{{ range .Site.Data.social.footer_accounts }}
{{ $account := index $.Site.Data.social.accounts . }}
<a href="{{ $account.link }}"><i class="mx-1 {{ $account.icon }}" aria-hidden="true" title="{{ $account.name }}"></i></a>
<a href="{{ $account.link }}"><i class="mx-1 {{ $account.icon }}" aria-hidden="true"
title="{{ $account.name }}"></i></a>
{{ end }}
</h3>
</div>

View file

@ -3,8 +3,8 @@
<a class="navbar-brand" href="{{ ref . " /" }}">
<code>/home/{{ lower .Site.Title }}</code>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav"
aria-expanded="false" aria-label="Toggle navigation">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

View file

@ -1,7 +1,3 @@
<iframe
class="youtube-embed"
src="https://www.youtube-nocookie.com/embed/{{ .Get 0 }}"
frameborder="0"
<iframe class="youtube-embed" src="https://www.youtube-nocookie.com/embed/{{ .Get 0 }}" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
allowfullscreen></iframe>