mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-09 21:49:41 +00:00
Format HTML everywhere
This commit is contained in:
parent
8955235db0
commit
75a45a192b
|
@ -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 }}>
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<figure class="text-center">
|
<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">
|
<figcaption class="text-center">
|
||||||
<small>{{ .Text }}</small>
|
<small>{{ .Text }}</small>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}">
|
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}">
|
||||||
|
@ -13,6 +14,7 @@
|
||||||
|
|
||||||
{{ block "head_extra" . }}{{ end }}
|
{{ block "head_extra" . }}{{ end }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{{ partial "navbar.html" . }}
|
{{ partial "navbar.html" . }}
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
|
@ -22,4 +24,5 @@
|
||||||
{{ partial "script_async.html" "js/bootstrap.min.js" }}
|
{{ partial "script_async.html" "js/bootstrap.min.js" }}
|
||||||
{{ block "scripts_extra" . }}{{ end }}
|
{{ block "scripts_extra" . }}{{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -7,11 +7,7 @@
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<p>{{ .Content }}</p>
|
<p>{{ .Content }}</p>
|
||||||
|
|
||||||
<svg
|
<svg viewbox="0 0 100 150" preserveAspectRatio="xMidYMid slice" height="720" width="480">
|
||||||
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,39 l100,0" />
|
||||||
<path class="grid-lines__line grid-lines__line--hor" d="m0,75 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="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="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--diag" d="m86,0 l-72,150" />
|
||||||
<path class="grid-lines__line grid-lines__line--cir"
|
<path class="grid-lines__line grid-lines__line--cir" d="m50,57 c18,0 18,18 18,18
|
||||||
d="m50,57 c18,0 18,18 18,18
|
|
||||||
c0,18 -18,18 -18,18
|
c0,18 -18,18 -18,18
|
||||||
c-18,0 -18,-18 -18,-18
|
c-18,0 -18,-18 -18,-18
|
||||||
c0,-18 18,-18 18,-18" />
|
c0,-18 18,-18 18,-18" />
|
||||||
<path class="grid-lines__line grid-lines__line--cir"
|
<path class="grid-lines__line grid-lines__line--cir" d="m50,39 c36,0 36,36 36,36
|
||||||
d="m50,39 c36,0 36,36 36,36
|
|
||||||
c0,36 -36,36 -36,36
|
c0,36 -36,36 -36,36
|
||||||
c-36,0 -36,-36 -36,-36
|
c-36,0 -36,-36 -36,-36
|
||||||
c0,-36 36,-36 36,-36" />
|
c0,-36 36,-36 36,-36" />
|
||||||
<path class="grid-lines__line grid-lines__line--cir"
|
<path class="grid-lines__line grid-lines__line--cir" d="m50,21 c54,0 54,54 54,54
|
||||||
d="m50,21 c54,0 54,54 54,54
|
|
||||||
c0,54 -54,54 -54,54
|
c0,54 -54,54 -54,54
|
||||||
c-54,0 -54,-54 -54,-54
|
c-54,0 -54,-54 -54,-54
|
||||||
c0,-54 54,-54 54,-54" />
|
c0,-54 54,-54 54,-54" />
|
||||||
|
|
||||||
<path class="wiz wiz--hair-bg"
|
<path class="wiz wiz--hair-bg" d="m50,48
|
||||||
d="m50,48
|
|
||||||
c0,0 6,0 6,2
|
c0,0 6,0 6,2
|
||||||
c0,0 0,3 2,3
|
c0,0 0,3 2,3
|
||||||
c0,0 2,0 2,4
|
c0,0 2,0 2,4
|
||||||
|
@ -62,15 +54,13 @@
|
||||||
c0,0 2,0 2,-3
|
c0,0 2,0 2,-3
|
||||||
c0,0 6,0 6,-2" />
|
c0,0 6,0 6,-2" />
|
||||||
|
|
||||||
<path class="wiz wiz--head"
|
<path class="wiz wiz--head" d="m50,50
|
||||||
d="m50,50
|
|
||||||
c0,0 8,0 8,10
|
c0,0 8,0 8,10
|
||||||
c0,0 0,10 -8,10
|
c0,0 0,10 -8,10
|
||||||
c0,0 -8,0 -8,-10
|
c0,0 -8,0 -8,-10
|
||||||
c0,0 0,-10 8,-10" />
|
c0,0 0,-10 8,-10" />
|
||||||
|
|
||||||
<path class="wiz wiz--hair"
|
<path class="wiz wiz--hair" d="m50,48
|
||||||
d="m50,48
|
|
||||||
c0,0 6,0 6,2
|
c0,0 6,0 6,2
|
||||||
c0,0 0,3 2,3
|
c0,0 0,3 2,3
|
||||||
c0,0 2,0 2,4
|
c0,0 2,0 2,4
|
||||||
|
@ -90,8 +80,7 @@
|
||||||
c0,0 0,-6 -4,-3" />
|
c0,0 0,-6 -4,-3" />
|
||||||
|
|
||||||
|
|
||||||
<path class="wiz wiz--hair"
|
<path class="wiz wiz--hair" d="m50,52
|
||||||
d="m50,52
|
|
||||||
c0,0 -6,-4 -6,4
|
c0,0 -6,-4 -6,4
|
||||||
c0,0 0,4 -2,4
|
c0,0 0,4 -2,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 -1,0 0,-4
|
||||||
c0,0 2,1 8,-1" />
|
c0,0 2,1 8,-1" />
|
||||||
|
|
||||||
<path class="wiz wiz--beard"
|
<path class="wiz wiz--beard" d="m50,69
|
||||||
d="m50,69
|
|
||||||
c0,0 5,0 5,-1
|
c0,0 5,0 5,-1
|
||||||
c0,0 4,0 4,2
|
c0,0 4,0 4,2
|
||||||
c0,0 2,0 1,4
|
c0,0 2,0 1,4
|
||||||
|
@ -135,15 +123,13 @@
|
||||||
c0,0 0,-4 2,-4
|
c0,0 0,-4 2,-4
|
||||||
c0,0 0,1 6,1" />
|
c0,0 0,1 6,1" />
|
||||||
|
|
||||||
<path class="wiz wiz--mouth"
|
<path class="wiz wiz--mouth" d="m50,65
|
||||||
d="m50,65
|
|
||||||
c0,0 5,0 5,3
|
c0,0 5,0 5,3
|
||||||
c0,0 0,2 -5,2
|
c0,0 0,2 -5,2
|
||||||
c0,0 -5,0 -5,-2
|
c0,0 -5,0 -5,-2
|
||||||
c0,0 0,-4 5,-3" />
|
c0,0 0,-4 5,-3" />
|
||||||
|
|
||||||
<path class="wiz wiz--mustache"
|
<path class="wiz wiz--mustache" d="m50,64
|
||||||
d="m50,64
|
|
||||||
c0,0 4,0 4,1
|
c0,0 4,0 4,1
|
||||||
c0,0 2,0 2,2
|
c0,0 2,0 2,2
|
||||||
c0,0 2,0 1,3
|
c0,0 2,0 1,3
|
||||||
|
@ -159,34 +145,29 @@
|
||||||
c0,0 -2,-3 1,-3
|
c0,0 -2,-3 1,-3
|
||||||
c0,0 -1,-5 6,-2" />
|
c0,0 -1,-5 6,-2" />
|
||||||
|
|
||||||
<path class="wiz wiz--eye wiz--left"
|
<path class="wiz wiz--eye wiz--left" d="m45,60
|
||||||
d="m45,60
|
|
||||||
c0,0 2,0 2,1
|
c0,0 2,0 2,1
|
||||||
c0,0 0,1 -2,0
|
c0,0 0,1 -2,0
|
||||||
c0,0 -1,0 0,-1" />
|
c0,0 -1,0 0,-1" />
|
||||||
|
|
||||||
<path class="wiz wiz--eye wiz--right"
|
<path class="wiz wiz--eye wiz--right" d="m52,60
|
||||||
d="m52,60
|
|
||||||
c0,0 1,-1 2,0
|
c0,0 1,-1 2,0
|
||||||
c0,0 0,1 -2,1
|
c0,0 0,1 -2,1
|
||||||
c0,0 -1,0 0,-1" />
|
c0,0 -1,0 0,-1" />
|
||||||
|
|
||||||
<path class="wiz wiz--eye-brow wiz--left"
|
<path class="wiz wiz--eye-brow wiz--left" d="m42,61
|
||||||
d="m42,61
|
|
||||||
c0,0 0,-3 1,-3
|
c0,0 0,-3 1,-3
|
||||||
c0,0 3,0 4,2
|
c0,0 3,0 4,2
|
||||||
c0,0 -1,-1 -4,-1
|
c0,0 -1,-1 -4,-1
|
||||||
c0,0 -1,0 -1,2" />
|
c0,0 -1,0 -1,2" />
|
||||||
|
|
||||||
<path class="wiz wiz--eye-brow wiz--right"
|
<path class="wiz wiz--eye-brow wiz--right" d="m51,60
|
||||||
d="m51,60
|
|
||||||
c0,0 2,-3 4,-3
|
c0,0 2,-3 4,-3
|
||||||
c0,0 2,0 2,3
|
c0,0 2,0 2,3
|
||||||
c0,0 -1,-2 -2,-2
|
c0,0 -1,-2 -2,-2
|
||||||
c0,0 -2,0 -4,2" />
|
c0,0 -2,0 -4,2" />
|
||||||
|
|
||||||
<path class="wiz wiz--sword"
|
<path class="wiz wiz--sword" d="m50,30
|
||||||
d="m50,30
|
|
||||||
c0,0 2,2 2,6
|
c0,0 2,2 2,6
|
||||||
l0,50
|
l0,50
|
||||||
l6,0
|
l6,0
|
||||||
|
@ -209,8 +190,7 @@
|
||||||
c0,0 0,-3 2,-6
|
c0,0 0,-3 2,-6
|
||||||
z" />
|
z" />
|
||||||
|
|
||||||
<path class="wiz wiz--staff"
|
<path class="wiz wiz--staff" d="m46,30
|
||||||
d="m46,30
|
|
||||||
l2,0
|
l2,0
|
||||||
c0,0 1,0 1,1
|
c0,0 1,0 1,1
|
||||||
l0,2
|
l0,2
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
{{ if not .Parent.IsHome }}
|
{{ if not .Parent.IsHome }}
|
||||||
{{ if gt .ReadingTime 2 }}
|
{{ 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
|
<i class="far fa-clock pr-1 content-detail"></i> {{ .ReadingTime }} minutes
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -16,10 +16,12 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Params.tags }}
|
{{ if .Params.tags }}
|
||||||
|
<span class="pr-2" title="Tags">
|
||||||
<a href="{{ ref . " /tags" }}" class="no-color-change mr-1">
|
<a href="{{ ref . " /tags" }}" class="no-color-change mr-1">
|
||||||
<i class="fas fa-tags small content-detail"></i>
|
<i class="fas fa-tags small content-detail"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ range $i, $e := .Params.tags }}
|
{{ range $i, $e := .Params.tags }}
|
||||||
<a href="/tags/{{ urlize . }}" class="mr-1">#{{ . }}</a>
|
<a href="/tags/{{ urlize . }}" class="mr-1">#{{ . }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
<h3 class="text-right">
|
<h3 class="text-right">
|
||||||
{{ range .Site.Data.social.footer_accounts }}
|
{{ range .Site.Data.social.footer_accounts }}
|
||||||
{{ $account := index $.Site.Data.social.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 }}
|
{{ end }}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
<a class="navbar-brand" href="{{ ref . " /" }}">
|
<a class="navbar-brand" href="{{ ref . " /" }}">
|
||||||
<code>/home/{{ lower .Site.Title }}</code>
|
<code>/home/{{ lower .Site.Title }}</code>
|
||||||
</a>
|
</a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav"
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
||||||
aria-expanded="false" aria-label="Toggle navigation">
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
<iframe
|
<iframe class="youtube-embed" src="https://www.youtube-nocookie.com/embed/{{ .Get 0 }}" frameborder="0"
|
||||||
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"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
allowfullscreen
|
allowfullscreen></iframe>
|
||||||
></iframe>
|
|
||||||
|
|
Loading…
Reference in a new issue