From ddcd0cdcd38735f15b933099be85446ad5b364d2 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 14 Jan 2024 13:18:01 +0000
Subject: [PATCH] edit whitespace #120
---
layouts/partials/nav.html | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 698c6c4..92f322b 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -8,7 +8,7 @@
<img src="{{ $litPath }}" alt="{{ site.Title }} Logo">
</picture>
<div class="nav_toggle toggle" title='{{ T "site_menu" }}'>
- {{ partial "sprite" (dict "icon" "harmburger") }}
+ {{- partial "sprite" (dict "icon" "harmburger") }}
</div>
</a>
<ul class="nav_body">
@@ -29,20 +29,20 @@
<a class="nav-link{{if $active }} active{{end}}" href="{{ $url }}"><span{{if $active }} class="active"{{end}}>{{ T .Identifier | default .Name }}</span></a>
</li>
{{- end }}
- {{ $repo := $config.source }}
- {{ with $config.source }}
+ {{- $repo := $config.source }}
+ {{- with $config.source }}
<li class="nav-item nav_repo">
<a class="nav-link" href="{{ .url }}" target="_blank">
- {{ if .iconLight }}
+ {{- if .iconLight }}
{{- $litPath := absURL .iconLight }}
{{- $darkPath := absURL .iconDark }}
<picture data-lit="{{ $litPath }}" data-dark="{{ $darkPath }}">
<img src="{{ $litPath }}" alt="{{ .name }} Repo">
</picture>
- {{ else }}{{ .name }}{{ end }}
+ {{- else }}{{ .name }}{{ end }}
</a>
</li>
- {{ end }}
+ {{- end }}
<li class="nav-item">{{ partial "mode" . }}</li>
</ul>
</nav>
--
Gitblit v1.10.0