mirror of
				https://github.com/ItsDrike/itsdrike.com.git
				synced 2025-11-04 04:06:36 +00:00 
			
		
		
		
	Automatically format HTML
This commit is contained in:
		
							parent
							
								
									8955235db0
								
							
						
					
					
						commit
						6dfd8c00d4
					
				
					 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 }}
 | 
					{{ $resource := .Page.Resources.GetMatch $destination }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if $resource }}
 | 
					{{ if $resource }}
 | 
				
			||||||
  {{ $destination = ($resource.Resize "1500x webp").RelPermalink }}
 | 
					{{ $destination = ($resource.Resize "1500x webp").RelPermalink }}
 | 
				
			||||||
{{ 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 }}%;'
 | 
				
			||||||
  <figcaption class="text-center">
 | 
					        referrerpolicy="no-referrer" loading="lazy" decoding="async" />
 | 
				
			||||||
    <small>{{ .Text }}</small>
 | 
					    <figcaption class="text-center">
 | 
				
			||||||
  </figcaption>
 | 
					        <small>{{ .Text }}</small>
 | 
				
			||||||
 | 
					    </figcaption>
 | 
				
			||||||
</figure>
 | 
					</figure>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
<!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 }}">
 | 
				
			||||||
    {{ partial "style.html" "scss/style.scss" }}
 | 
					    {{ partial "style.html" "scss/style.scss" }}
 | 
				
			||||||
| 
						 | 
					@ -12,8 +13,9 @@
 | 
				
			||||||
    <title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
 | 
					    <title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {{ block "head_extra" . }}{{ end }}
 | 
					    {{ block "head_extra" . }}{{ end }}
 | 
				
			||||||
  </head>
 | 
					</head>
 | 
				
			||||||
  <body>
 | 
					
 | 
				
			||||||
 | 
					<body>
 | 
				
			||||||
    {{ partial "navbar.html" . }}
 | 
					    {{ partial "navbar.html" . }}
 | 
				
			||||||
    {{ block "main" . }}{{ end }}
 | 
					    {{ block "main" . }}{{ end }}
 | 
				
			||||||
    {{ partial "footer.html" . }}
 | 
					    {{ partial "footer.html" . }}
 | 
				
			||||||
| 
						 | 
					@ -21,5 +23,6 @@
 | 
				
			||||||
    {{ partial "script.html" "js/jquery.min.js" }}
 | 
					    {{ partial "script.html" "js/jquery.min.js" }}
 | 
				
			||||||
    {{ 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>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,48 +1,40 @@
 | 
				
			||||||
{{ define "head_extra" }}
 | 
					{{ define "head_extra" }}
 | 
				
			||||||
    {{ partial "style.html" "scss/forbid_style.scss" }}
 | 
					{{ partial "style.html" "scss/forbid_style.scss" }}
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ define "main" }}
 | 
					{{ define "main" }}
 | 
				
			||||||
  <div id="main" class="wrapper_forbid">
 | 
					<div id="main" class="wrapper_forbid">
 | 
				
			||||||
    <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" />
 | 
				
			||||||
      <path class="grid-lines__line grid-lines__line--hor" d="m0,111 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="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="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="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="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--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="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="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
 | 
				
			||||||
| 
						 | 
					@ -234,5 +214,5 @@
 | 
				
			||||||
          c0,0 -1,0 -1,-4
 | 
					          c0,0 -1,0 -1,-4
 | 
				
			||||||
          c0,0 0,-3 1,-3" />
 | 
					          c0,0 0,-3 1,-3" />
 | 
				
			||||||
    </svg>
 | 
					    </svg>
 | 
				
			||||||
  </div>
 | 
					</div>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
{{ define "main" }}
 | 
					{{ define "main" }}
 | 
				
			||||||
  <div id="main">
 | 
					<div id="main">
 | 
				
			||||||
    <div class="container">
 | 
					    <div class="container">
 | 
				
			||||||
      {{ partial "header_image.html" . }}
 | 
					        {{ partial "header_image.html" . }}
 | 
				
			||||||
      {{ partial "content.html" . }}
 | 
					        {{ partial "content.html" . }}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					</div>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,19 +1,19 @@
 | 
				
			||||||
{{ define "main" }}
 | 
					{{ define "main" }}
 | 
				
			||||||
  <div id="main">
 | 
					<div id="main">
 | 
				
			||||||
    <div class="container">
 | 
					    <div class="container">
 | 
				
			||||||
      {{ partial "content.html" . }}
 | 
					        {{ partial "content.html" . }}
 | 
				
			||||||
      {{ if .Content }}
 | 
					        {{ if .Content }}
 | 
				
			||||||
        <hr>
 | 
					        <hr>
 | 
				
			||||||
      {{ end }}
 | 
					        {{ end }}
 | 
				
			||||||
      {{ range .Pages.ByTitle }}
 | 
					        {{ range .Pages.ByTitle }}
 | 
				
			||||||
        <div class="media list-page-item mb-3">
 | 
					        <div class="media list-page-item mb-3">
 | 
				
			||||||
          <div class="media-body">
 | 
					            <div class="media-body">
 | 
				
			||||||
            <a href="{{ .RelPermalink }}">
 | 
					                <a href="{{ .RelPermalink }}">
 | 
				
			||||||
              <h5 class="my-0"><code>#{{ .Title }}</code></h5>
 | 
					                    <h5 class="my-0"><code>#{{ .Title }}</code></h5>
 | 
				
			||||||
            </a>
 | 
					                </a>
 | 
				
			||||||
          </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      {{ end }}
 | 
					        {{ end }}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					</div>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
{{ define "main" }}
 | 
					{{ define "main" }}
 | 
				
			||||||
  <div id="main" class="short-top">
 | 
					<div id="main" class="short-top">
 | 
				
			||||||
    <div class="container">
 | 
					    <div class="container">
 | 
				
			||||||
      {{ partial "header_image.html" . }}
 | 
					        {{ partial "header_image.html" . }}
 | 
				
			||||||
      {{ .Content }}
 | 
					        {{ .Content }}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					</div>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,21 +5,23 @@
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ 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 }}
 | 
				
			||||||
  <span class="pr-2" title="Word count">
 | 
					<span class="pr-2" title="Word count">
 | 
				
			||||||
    <i class="far fa-file-alt pr-1 content-detail"></i> {{ .WordCount }} words
 | 
					    <i class="far fa-file-alt pr-1 content-detail"></i> {{ .WordCount }} words
 | 
				
			||||||
  </span>
 | 
					</span>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if .Params.tags }}
 | 
					{{ if .Params.tags }}
 | 
				
			||||||
  <a href="{{ ref . " /tags" }}" class="no-color-change mr-1">
 | 
					<span class="pr-2" title="Tags">
 | 
				
			||||||
    <i class="fas fa-tags small content-detail"></i>
 | 
					    <a href="{{ ref . " /tags" }}" class="no-color-change mr-1">
 | 
				
			||||||
  </a>
 | 
					        <i class="fas fa-tags small content-detail"></i>
 | 
				
			||||||
  {{ range $i, $e := .Params.tags }}
 | 
					    </a>
 | 
				
			||||||
 | 
					    {{ 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 }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,45 +1,45 @@
 | 
				
			||||||
<h1 class="display-4">{{ .Title }}</h1>
 | 
					<h1 class="display-4">{{ .Title }}</h1>
 | 
				
			||||||
{{ if .Params.subtitle }}
 | 
					{{ if .Params.subtitle }}
 | 
				
			||||||
  <h5 class="my-3">{{ markdownify .Params.subtitle | emojify }}</h5>
 | 
					<h5 class="my-3">{{ markdownify .Params.subtitle | emojify }}</h5>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if .IsPage }}
 | 
					{{ if .IsPage }}
 | 
				
			||||||
  <p>{{ partial "content-details.html" . }}</p>
 | 
					<p>{{ partial "content-details.html" . }}</p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!-- When directly viewing the article, if available, we also include revision date-->
 | 
					<!-- When directly viewing the article, if available, we also include revision date-->
 | 
				
			||||||
  {{ if and (not .Lastmod.IsZero) (not (.Lastmod.Equal .Date)) }}
 | 
					{{ if and (not .Lastmod.IsZero) (not (.Lastmod.Equal .Date)) }}
 | 
				
			||||||
    <span class="pr-2" title='{{ .Lastmod.Format "January 2 2006" }}'>
 | 
					<span class="pr-2" title='{{ .Lastmod.Format "January 2 2006" }}'>
 | 
				
			||||||
      <i class="pr-1 content-detail">Article revised in: {{ .Lastmod.Format "January 2 2006" }}</i>
 | 
					    <i class="pr-1 content-detail">Article revised in: {{ .Lastmod.Format "January 2 2006" }}</i>
 | 
				
			||||||
    </span>
 | 
					</span>
 | 
				
			||||||
  {{ end }}
 | 
					{{ end }}
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if .Content }}
 | 
					{{ if .Content }}
 | 
				
			||||||
  <hr>
 | 
					<hr>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <div class="content mt-3">
 | 
					<div class="content mt-3">
 | 
				
			||||||
    {{ if .TableOfContents }}
 | 
					    {{ if .TableOfContents }}
 | 
				
			||||||
      <!-- Get the amount of headers using regex -->
 | 
					    <!-- Get the amount of headers using regex -->
 | 
				
			||||||
      {{ $headers := findRE "<h[1-6].*?>(.|\n])+?</h[1-6]>" .Content }}
 | 
					    {{ $headers := findRE "<h[1-6].*?>(.|\n])+?</h[1-6]>" .Content }}
 | 
				
			||||||
      <!-- We only need to show a table of contents if we have over 4 headers -->
 | 
					        <!-- We only need to show a table of contents if we have over 4 headers -->
 | 
				
			||||||
      {{ if ge (len $headers) 4 }}
 | 
					        {{ if ge (len $headers) 4 }}
 | 
				
			||||||
        <div class="float-lg-end ml-lg-3 mb-3 p-3">
 | 
					        <div class="float-lg-end ml-lg-3 mb-3 p-3">
 | 
				
			||||||
          {{ .TableOfContents }}
 | 
					            {{ .TableOfContents }}
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      {{ end }}
 | 
					 | 
				
			||||||
    {{ end }}
 | 
					 | 
				
			||||||
    {{ .Content }}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    <div id="sources">
 | 
					 | 
				
			||||||
      {{ if .Params.Sources }}
 | 
					 | 
				
			||||||
        <h2>Sources</h2>
 | 
					 | 
				
			||||||
        <ul>
 | 
					 | 
				
			||||||
        {{ range $i, $e := .Params.Sources }}
 | 
					 | 
				
			||||||
          <li>{{ markdownify $e }}</li>
 | 
					 | 
				
			||||||
        {{ end }}
 | 
					        {{ end }}
 | 
				
			||||||
        </ul>
 | 
					        {{ end }}
 | 
				
			||||||
      {{ end }}
 | 
					        {{ .Content }}
 | 
				
			||||||
    </div>
 | 
					
 | 
				
			||||||
  </div>
 | 
					
 | 
				
			||||||
 | 
					        <div id="sources">
 | 
				
			||||||
 | 
					            {{ if .Params.Sources }}
 | 
				
			||||||
 | 
					            <h2>Sources</h2>
 | 
				
			||||||
 | 
					            <ul>
 | 
				
			||||||
 | 
					                {{ range $i, $e := .Params.Sources }}
 | 
				
			||||||
 | 
					                <li>{{ markdownify $e }}</li>
 | 
				
			||||||
 | 
					                {{ end }}
 | 
				
			||||||
 | 
					            </ul>
 | 
				
			||||||
 | 
					            {{ end }}
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
{{ $sizes := slice 16 32 64 100 200 }}
 | 
					{{ $sizes := slice 16 32 64 100 200 }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ range $sizes }}
 | 
					{{ range $sizes }}
 | 
				
			||||||
  {{ $sizes := printf "%dx%d" . . }}
 | 
					{{ $sizes := printf "%dx%d" . . }}
 | 
				
			||||||
  <link rel="icon" type="image/png" sizes="{{ $sizes }}"
 | 
					<link rel="icon" type="image/png" sizes="{{ $sizes }}"
 | 
				
			||||||
    href='{{ ((resources.Get $image | fingerprint).Resize $sizes).RelPermalink }}'>
 | 
					    href='{{ ((resources.Get $image | fingerprint).Resize $sizes).RelPermalink }}'>
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,21 +1,22 @@
 | 
				
			||||||
<footer class="p-5">
 | 
					<footer class="p-5">
 | 
				
			||||||
  <div class="container">
 | 
					    <div class="container">
 | 
				
			||||||
    <div class="row">
 | 
					        <div class="row">
 | 
				
			||||||
      <div class="col-sm-2">
 | 
					            <div class="col-sm-2">
 | 
				
			||||||
        <p>© {{ now.Year }} <a href='{{ ref . "contact" }}'>{{ .Site.Title }}</a>.</p>
 | 
					                <p>© {{ now.Year }} <a href='{{ ref . "contact" }}'>{{ .Site.Title }}</a>.</p>
 | 
				
			||||||
        <p></p>
 | 
					                <p></p>
 | 
				
			||||||
      </div>
 | 
					            </div>
 | 
				
			||||||
      <div class="col-sm-7">
 | 
					            <div class="col-sm-7">
 | 
				
			||||||
        <a href='{{ ref . "privacy-policy" }}'>Privacy policy</a>
 | 
					                <a href='{{ ref . "privacy-policy" }}'>Privacy policy</a>
 | 
				
			||||||
      </div>
 | 
					            </div>
 | 
				
			||||||
      <div class="col-sm-3">
 | 
					            <div class="col-sm-3">
 | 
				
			||||||
        <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"
 | 
				
			||||||
          {{ end }}
 | 
					                            title="{{ $account.name }}"></i></a>
 | 
				
			||||||
        </h3>
 | 
					                    {{ end }}
 | 
				
			||||||
      </div>
 | 
					                </h3>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					 | 
				
			||||||
</footer>
 | 
					</footer>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
{{ if .Params.image }}
 | 
					{{ if .Params.image }}
 | 
				
			||||||
  {{ .Scratch.Set "image" .Params.image }}
 | 
					{{ .Scratch.Set "image" .Params.image }}
 | 
				
			||||||
  {{ if hasPrefix .Params.image "resource:" }}
 | 
					{{ if hasPrefix .Params.image "resource:" }}
 | 
				
			||||||
    {{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
 | 
					{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
 | 
				
			||||||
    {{ .Scratch.Set "image" ($resource.Resize "2000x").RelPermalink }}
 | 
					{{ .Scratch.Set "image" ($resource.Resize "2000x").RelPermalink }}
 | 
				
			||||||
  {{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' />
 | 
					<img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' />
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,31 +1,31 @@
 | 
				
			||||||
<nav class="navbar navbar-expand-sm navbar-dark">
 | 
					<nav class="navbar navbar-expand-sm navbar-dark">
 | 
				
			||||||
  <!-- Navbar home -->
 | 
					    <!-- Navbar home -->
 | 
				
			||||||
  <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>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <div class="collapse navbar-collapse" id="navbarNav">
 | 
					    <div class="collapse navbar-collapse" id="navbarNav">
 | 
				
			||||||
    <!-- Left side of the Navbar -->
 | 
					        <!-- Left side of the Navbar -->
 | 
				
			||||||
    <ul class="navbar-nav mr-auto">
 | 
					        <ul class="navbar-nav mr-auto">
 | 
				
			||||||
      <!-- Navbar pages -->
 | 
					            <!-- Navbar pages -->
 | 
				
			||||||
      {{ $home := .Site.GetPage "home" }}
 | 
					            {{ $home := .Site.GetPage "home" }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      {{ $pages := where .Site.RegularPages.ByTitle "Section" "" }}
 | 
					            {{ $pages := where .Site.RegularPages.ByTitle "Section" "" }}
 | 
				
			||||||
      {{ $nav_pages := union $pages .Site.Sections }}
 | 
					            {{ $nav_pages := union $pages .Site.Sections }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      {{ $nav_pages = where $nav_pages "Params.hidden_from_navbar" "!=" true }}
 | 
					            {{ $nav_pages = where $nav_pages "Params.hidden_from_navbar" "!=" true }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      {{ range sort $nav_pages "LinkTitle" }}
 | 
					            {{ range sort $nav_pages "LinkTitle" }}
 | 
				
			||||||
        <li class="nav-item">
 | 
					            <li class="nav-item">
 | 
				
			||||||
            <a href="{{ .RelPermalink }}" class="nav-link">
 | 
					                <a href="{{ .RelPermalink }}" class="nav-link">
 | 
				
			||||||
                <code>~/{{ urlize .LinkTitle }}</code>
 | 
					                    <code>~/{{ urlize .LinkTitle }}</code>
 | 
				
			||||||
            </a>
 | 
					                </a>
 | 
				
			||||||
        </li>
 | 
					            </li>
 | 
				
			||||||
      {{ end }}
 | 
					            {{ end }}
 | 
				
			||||||
    </ul>
 | 
					        </ul>
 | 
				
			||||||
  </div>
 | 
					    </div>
 | 
				
			||||||
</nav>
 | 
					</nav>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
{{ $script := resources.Get . }}
 | 
					{{ $script := resources.Get . }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if in . "min" }}
 | 
					{{ if in . "min" }}
 | 
				
			||||||
  {{ $script = $script | minify | fingerprint }}
 | 
					{{ $script = $script | minify | fingerprint }}
 | 
				
			||||||
{{ else }}
 | 
					{{ else }}
 | 
				
			||||||
  {{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
 | 
					{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script type="text/javascript" src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
 | 
					<script type="text/javascript" src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
{{ $script := resources.Get . }}
 | 
					{{ $script := resources.Get . }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if in . "min" }}
 | 
					{{ if in . "min" }}
 | 
				
			||||||
  {{ $script = $script | minify | fingerprint }}
 | 
					{{ $script = $script | minify | fingerprint }}
 | 
				
			||||||
{{ else }}
 | 
					{{ else }}
 | 
				
			||||||
  {{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
 | 
					{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script type="text/javascript" async src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
 | 
					<script type="text/javascript" async src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
{{ if .Content }}
 | 
					{{ if .Content }}
 | 
				
			||||||
  {{ .Summary | chomp }}{{ if .Truncated }}…{{ end }}
 | 
					{{ .Summary | chomp }}{{ if .Truncated }}…{{ end }}
 | 
				
			||||||
{{ else if .Params.subtitle }}
 | 
					{{ else if .Params.subtitle }}
 | 
				
			||||||
  {{ .Params.subtitle | markdownify | emojify }}
 | 
					{{ .Params.subtitle | markdownify | emojify }}
 | 
				
			||||||
{{ end }}
 | 
					{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
{{ .Title }} ::
 | 
					{{ .Title }} ::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{{ if .Parent }}{{ if not .Parent.IsHome }}
 | 
					{{ if .Parent }}{{ if not .Parent.IsHome }}
 | 
				
			||||||
  {{ partial "title-item.html" .Parent }}
 | 
					{{ partial "title-item.html" .Parent }}
 | 
				
			||||||
{{ end }}{{ end }}
 | 
					{{ end }}{{ end }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue