Indent consistently with 2 spaces

This commit is contained in:
ItsDrike 2021-08-26 02:06:40 +02:00
parent cf116ca468
commit 1385f95d7f
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
11 changed files with 86 additions and 86 deletions

View file

@ -1,23 +1,23 @@
<!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" }}
{{ partial "style.html" "css/highlight.css" }} {{ partial "style.html" "css/highlight.css" }}
{{ partial "style.html" "css/font-awesome.css" }} {{ partial "style.html" "css/font-awesome.css" }}
{{ partial "favicon.html" }} {{ partial "favicon.html" }}
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title> <title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
</head> </head>
<body> <body>
{{ partial "navbar.html" . }} {{ partial "navbar.html" . }}
{{ block "main" . }}{{ end }} {{ block "main" . }}{{ end }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
{{ 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>

View file

@ -1,13 +1,13 @@
{{ 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 }}
{{ partial "list_item.html" . }} {{ partial "list_item.html" . }}
{{ end }} {{ end }}
</div> </div>
</div> </div>
{{ end }} {{ end }}

View file

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
<div id="main"> <div id="main">
<div class="container"> <div class="container">
{{ partial "content.html" . }} {{ partial "content.html" . }}
</div>
</div> </div>
</div>
{{ end }} {{ end }}

View file

@ -1,21 +1,21 @@
<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>
{{ end }} {{ end }}
{{ if .Content }} {{ if .Content }}
<hr> <hr>
<div class="content mt-3"> <div class="content mt-3">
{{ if .TableOfContents }} {{ if .TableOfContents }}
<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 }} {{ .Content }}
</div> </div>
{{ end }} {{ end }}

View file

@ -1,18 +1,18 @@
<footer class="p-5"> <footer class="p-5">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-sm-9"> <div class="col-sm-9">
<p>&copy; {{ now.Year }} <a href='{{ ref . "contact" }}'>{{ .Site.Title }}</a>.</p> <p>&copy; {{ now.Year }} <a href='{{ ref . "contact" }}'>{{ .Site.Title }}</a>.</p>
<p></p> <p></p>
</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" title="{{ $account.name }}"></i></a>
{{ end }} {{ end }}
</h3> </h3>
</div> </div>
</div>
</div> </div>
</div>
</footer> </footer>

View file

@ -1,9 +1,9 @@
<div class="media list-page-item mb-3" data-id="{{ with .File}}{{ .File.UniqueID }}{{ end }}"> <div class="media list-page-item mb-3" data-id="{{ with .File}}{{ .File.UniqueID }}{{ end }}">
<div class="media-body"> <div class="media-body">
<a href="{{ .RelPermalink }}"> <a href="{{ .RelPermalink }}">
<h5 class="my-0">{{ .Title }}</h5> <h5 class="my-0">{{ .Title }}</h5>
</a> </a>
<small>{{ partial "content-details.html" . }}</small> <small>{{ partial "content-details.html" . }}</small>
<p>{{ partial "summary.html" . }}</p> <p>{{ partial "summary.html" . }}</p>
</div> </div>
</div> </div>

View file

@ -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>

View file

@ -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>

View file

@ -1,5 +1,5 @@
{{ if .Content }} {{ if .Content }}
{{ .Summary | chomp }}{{ if .Truncated }}&hellip;{{ end }} {{ .Summary | chomp }}{{ if .Truncated }}&hellip;{{ end }}
{{ else if .Params.subtitle }} {{ else if .Params.subtitle }}
{{ .Params.subtitle | markdownify | emojify }} {{ .Params.subtitle | markdownify | emojify }}
{{ end }} {{ end }}

View file

@ -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 }}

View file

@ -1,22 +1,22 @@
{{ define "main" }} {{ define "main" }}
<div id="main"> <div id="main">
<div class="container"> <div class="container">
{{ partial "content.html" . }} {{ partial "content.html" . }}
<!--Group posts by months--> <!--Group posts by months-->
{{ range .Pages.GroupByDate "2006-01" }} {{ range .Pages.GroupByDate "2006-01" }}
{{ $month := print .Key "-01"}} {{ $month := print .Key "-01"}}
{{ $display := dateFormat "2006-01" $month }} {{ $display := dateFormat "2006-01" $month }}
<h3 class="mt-5" id="{{ $display }}"> <h3 class="mt-5" id="{{ $display }}">
<a href="#{{ $display }}"> <a href="#{{ $display }}">
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ $display }}</time> <time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ $display }}</time>
</a> </a>
</h3> </h3>
<!--List posts belonging to current month --> <!--List posts belonging to current month -->
{{ range (sort .Pages "Date" "desc") }} {{ range (sort .Pages "Date" "desc") }}
{{ partial "list_item.html" . }} {{ partial "list_item.html" . }}
{{ end }} {{ end }}
{{ end }} {{ end }}
</div>
</div> </div>
</div>
{{ end }} {{ end }}