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

github.com/guangmean/Niello.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/nav.html')
-rw-r--r--layouts/partials/nav.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
new file mode 100644
index 0000000..d9fd151
--- /dev/null
+++ b/layouts/partials/nav.html
@@ -0,0 +1,17 @@
+<div class="navigation">
+ {{ if .Site.Menus.niello }}
+ {{ $inNav := 0 }}
+ {{ $currentPage := .RelPermalink }}
+ {{ range sort .Site.Menus.niello "Weight" "asc" }}
+ <a href="{{ .URL }}" class="{{ if eq $currentPage .URL }} {{ $inNav = 1 }}current{{ end}}">{{ .Name }}</a>
+ {{ end }}
+ {{ if eq $inNav 0 }}
+ <a href="javascript:void(0);" class="current">ARTICLE</a>
+ {{ end }}
+ {{ else if eq .IsHome true }}
+ <a href="/" class="current">HOME</a>
+ {{ else }}
+ <a href="/" class="">HOME</a>
+ <a href="javascript:void(0);" class="current">ARTICLE</a>
+ {{ end }}
+</div>