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>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}">
{{ partial "style.html" "scss/style.scss" }}
{{ partial "style.html" "css/highlight.css" }}
{{ partial "style.html" "css/font-awesome.css" }}
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}">
{{ partial "style.html" "scss/style.scss" }}
{{ partial "style.html" "css/highlight.css" }}
{{ partial "style.html" "css/font-awesome.css" }}
{{ partial "favicon.html" }}
{{ partial "favicon.html" }}
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
</head>
<body>
{{ partial "navbar.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
</head>
<body>
{{ partial "navbar.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
{{ partial "script.html" "js/jquery.min.js" }}
{{ partial "script_async.html" "js/bootstrap.min.js" }}
{{ block "scripts_extra" . }}{{ end }}
</body>
{{ partial "script.html" "js/jquery.min.js" }}
{{ partial "script_async.html" "js/bootstrap.min.js" }}
{{ block "scripts_extra" . }}{{ end }}
</body>
</html>

View file

@ -1,13 +1,13 @@
{{ define "main" }}
<div id="main">
<div class="container">
{{ partial "content.html" . }}
{{ if .Content }}
<hr />
{{ end }}
{{ range .Pages.ByTitle }}
{{ partial "list_item.html" . }}
{{ end }}
{{ partial "content.html" . }}
{{ if .Content }}
<hr />
{{ end }}
{{ range .Pages.ByTitle }}
{{ partial "list_item.html" . }}
{{ end }}
</div>
</div>
{{ end }}

View file

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

View file

@ -1,21 +1,21 @@
<h1 class="display-4">{{ .Title }}</h1>
{{ if .Params.subtitle }}
<h5 class="my-3">{{ markdownify .Params.subtitle | emojify }}</h5>
<h5 class="my-3">{{ markdownify .Params.subtitle | emojify }}</h5>
{{ end }}
{{ if .IsPage }}
<p>{{ partial "content-details.html" . }}</p>
<p>{{ partial "content-details.html" . }}</p>
{{ end }}
{{ if .Content }}
<hr>
<hr>
<div class="content mt-3">
{{ if .TableOfContents }}
<div class="float-lg-end ml-lg-3 mb-3 p-3">
{{ .TableOfContents }}
</div>
{{ end }}
{{ .Content }}
</div>
<div class="content mt-3">
{{ if .TableOfContents }}
<div class="float-lg-end ml-lg-3 mb-3 p-3">
{{ .TableOfContents }}
</div>
{{ end }}
{{ .Content }}
</div>
{{ end }}

View file

@ -1,18 +1,18 @@
<footer class="p-5">
<div class="container">
<div class="row">
<div class="col-sm-9">
<p>&copy; {{ now.Year }} <a href='{{ ref . "contact" }}'>{{ .Site.Title }}</a>.</p>
<p></p>
</div>
<div class="col-sm-3">
<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>
{{ end }}
</h3>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-9">
<p>&copy; {{ now.Year }} <a href='{{ ref . "contact" }}'>{{ .Site.Title }}</a>.</p>
<p></p>
</div>
<div class="col-sm-3">
<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>
{{ end }}
</h3>
</div>
</div>
</div>
</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-body">
<a href="{{ .RelPermalink }}">
<h5 class="my-0">{{ .Title }}</h5>
</a>
<small>{{ partial "content-details.html" . }}</small>
<p>{{ partial "summary.html" . }}</p>
</div>
<div class="media-body">
<a href="{{ .RelPermalink }}">
<h5 class="my-0">{{ .Title }}</h5>
</a>
<small>{{ partial "content-details.html" . }}</small>
<p>{{ partial "summary.html" . }}</p>
</div>
</div>

View file

@ -1,9 +1,9 @@
{{ $script := resources.Get . }}
{{ if in . "min" }}
{{ $script = $script | minify | fingerprint }}
{{ $script = $script | minify | fingerprint }}
{{ else }}
{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
{{ end }}
<script type="text/javascript" src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>

View file

@ -1,9 +1,9 @@
{{ $script := resources.Get . }}
{{ if in . "min" }}
{{ $script = $script | minify | fingerprint }}
{{ $script = $script | minify | fingerprint }}
{{ else }}
{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
{{ end }}
<script type="text/javascript" async src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>

View file

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

View file

@ -1,5 +1,5 @@
{{ .Title }} ::
{{ if .Parent }}{{ if not .Parent.IsHome }}
{{ partial "title-item.html" .Parent }}
{{ partial "title-item.html" .Parent }}
{{ end }}{{ end }}

View file

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