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

github.com/tummychow/lanyon-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r--layouts/partials/sidebar.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 53936b3..43d3c7c 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -12,12 +12,12 @@
<a class="sidebar-nav-item {{ if .IsHome }} active {{ end }}" href="/">Home</a>
<a class="sidebar-nav-item {{ if eq .RelPermalink "/post/" }} active {{ end }}" href="/post">Posts</a>
- {{ $thisperma := .Permalink }}
- {{ range .Site.Pages.ByWeight }}
- {{ if isset .Params "sidebar" }}
+ {{- $thisperma := .Permalink }}
+ {{ range .Site.Pages.ByWeight -}}
+ {{ if isset .Params "sidebar" -}}
<a class="sidebar-nav-item {{ if eq .Permalink $thisperma }} active {{ end }}" href="{{ .Permalink }}">{{ .Title }}</a>
- {{ end }}
- {{ end }}
+ {{ end -}}
+ {{ end -}}
<a class="sidebar-nav-item" href="{{ .Site.Params.Github.Url }}/archive/{{ .Site.Params.Github.Head }}.zip">Download</a>
<a class="sidebar-nav-item" href="{{ .Site.Params.Github.Url }}">GitHub project</a>