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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/nav-single.html')
-rw-r--r--layouts/partials/nav-single.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/layouts/partials/nav-single.html b/layouts/partials/nav-single.html
index 64d9a49..ee5822e 100644
--- a/layouts/partials/nav-single.html
+++ b/layouts/partials/nav-single.html
@@ -10,11 +10,13 @@
<a href="/">Main</a>
</span>
<span class="nav-item">
- <a href="/#about">About</a>
+ <a href="/#about">About</a>
</span>
+ {{ with .Section }}
<span class="nav-item">
- <a href="/{{ .Section }}">Back to {{ .Section }}</a>
- </span>
+ <a href="/{{ . }}">Back to {{ . }}</a>
+ </span>
+ {{ end }}
<span class="nav-item">
<a href="/#contact">Contact</a>
</span>
@@ -25,4 +27,4 @@
{{ end }}
</div>
</nav>
-<hr> \ No newline at end of file
+<hr>