Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Lednerb/bilberry-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Brendel <mail@lednerb.eu>2020-08-11 10:38:52 +0300
committerSascha Brendel <mail@lednerb.eu>2020-08-11 10:38:52 +0300
commitb04d31d60a60ce7ddb5f85299519c0bd84013331 (patch)
treea827c2a74ab033d083257153fe1bf896c6d013c1
parent3b613b02659342e962f55a107ba11c760661f232 (diff)
Adjusted code style
-rw-r--r--layouts/partials/topnav.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/layouts/partials/topnav.html b/layouts/partials/topnav.html
index a17b72d..994aa6b 100644
--- a/layouts/partials/topnav.html
+++ b/layouts/partials/topnav.html
@@ -8,21 +8,21 @@
<div class="container">
<ul class="topnav">
{{ range where (where .Site.Pages.ByWeight ".Type" "page") ".IsPage" true }}
- {{ if .Params.excludeFromTopNav }}
- {{/* Do nothing */}}
- {{ else if and (isset .Params "link") (ne .Params.link "") }}
- <li><a href="{{ .Params.link | relURL }}" target="{{ .Params.target }}">{{ .Title }}</a></li>
- {{ else }}
- <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
- {{ end }}
+ {{ if .Params.excludeFromTopNav }}
+ {{/* Do nothing */}}
+ {{ else if and (isset .Params "link") (ne .Params.link "") }}
+ <li><a href="{{ .Params.link | relURL }}" target="{{ .Params.target }}">{{ .Title }}</a></li>
+ {{ else }}
+ <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
+ {{ end }}
{{ end }}
</ul>
{{ if and (isset .Site.Params "algolia_search") (eq .Site.Params.algolia_search true) }}
- <div id="search-box" class="search">
- <i class="fas fa-search"></i>
- <input id="search" type="text" placeholder="{{ i18n "search" }}">
- </div>
+ <div id="search-box" class="search">
+ <i class="fas fa-search"></i>
+ <input id="search" type="text" placeholder="{{ i18n "search" }}">
+ </div>
{{ end }}
</div>
</nav>