mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-06-29 08:10:41 +00:00
Format HTML everywhere
This commit is contained in:
parent
8955235db0
commit
75a45a192b
18 changed files with 174 additions and 189 deletions
|
@ -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 }}>
|
||||
|
|
|
@ -3,12 +3,13 @@
|
|||
{{ $resource := .Page.Resources.GetMatch $destination }}
|
||||
|
||||
{{ if $resource }}
|
||||
{{ $destination = ($resource.Resize "1500x webp").RelPermalink }}
|
||||
{{ $destination = ($resource.Resize "1500x webp").RelPermalink }}
|
||||
{{ 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" />
|
||||
<figcaption class="text-center">
|
||||
<small>{{ .Text }}</small>
|
||||
</figcaption>
|
||||
<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>
|
||||
</figure>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}">
|
||||
{{ partial "style.html" "scss/style.scss" }}
|
||||
|
@ -12,8 +13,9 @@
|
|||
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
|
||||
|
||||
{{ block "head_extra" . }}{{ end }}
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
@ -21,5 +23,6 @@
|
|||
{{ partial "script.html" "js/jquery.min.js" }}
|
||||
{{ partial "script_async.html" "js/bootstrap.min.js" }}
|
||||
{{ block "scripts_extra" . }}{{ end }}
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -1,48 +1,40 @@
|
|||
{{ define "head_extra" }}
|
||||
{{ partial "style.html" "scss/forbid_style.scss" }}
|
||||
{{ partial "style.html" "scss/forbid_style.scss" }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<div id="main" class="wrapper_forbid">
|
||||
<div id="main" class="wrapper_forbid">
|
||||
<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" />
|
||||
<path class="grid-lines__line grid-lines__line--hor" d="m0,111 l100,0" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m14,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m32,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m50,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m68,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m86,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--diag" d="m14,0 l72,150" />
|
||||
<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--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,111 l100,0" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m14,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m32,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m50,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m68,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--ver" d="m86,0 l0,150" />
|
||||
<path class="grid-lines__line grid-lines__line--diag" d="m14,0 l72,150" />
|
||||
<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
|
||||
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
|
||||
|
@ -234,5 +214,5 @@
|
|||
c0,0 -1,0 -1,-4
|
||||
c0,0 0,-3 1,-3" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{{ define "main" }}
|
||||
<div id="main">
|
||||
<div id="main">
|
||||
<div class="container">
|
||||
{{ partial "header_image.html" . }}
|
||||
{{ partial "content.html" . }}
|
||||
{{ partial "header_image.html" . }}
|
||||
{{ partial "content.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
{{ define "main" }}
|
||||
<div id="main">
|
||||
<div id="main">
|
||||
<div class="container">
|
||||
{{ partial "content.html" . }}
|
||||
{{ if .Content }}
|
||||
{{ partial "content.html" . }}
|
||||
{{ if .Content }}
|
||||
<hr>
|
||||
{{ end }}
|
||||
{{ range .Pages.ByTitle }}
|
||||
{{ end }}
|
||||
{{ range .Pages.ByTitle }}
|
||||
<div class="media list-page-item mb-3">
|
||||
<div class="media-body">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<h5 class="my-0"><code>#{{ .Title }}</code></h5>
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<h5 class="my-0"><code>#{{ .Title }}</code></h5>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue