mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2025-03-12 19:06:13 +00:00
Fix issue 38 - Dont generate link back to section if page does not have a section (#39)
This commit is contained in:
parent
f2024bb2a4
commit
633e1e3d4a
1 changed files with 6 additions and 4 deletions
|
@ -10,11 +10,13 @@
|
||||||
<a href="/">Main</a>
|
<a href="/">Main</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="nav-item">
|
<span class="nav-item">
|
||||||
<a href="/#about">About</a>
|
<a href="/#about">About</a>
|
||||||
</span>
|
</span>
|
||||||
|
{{ with .Section }}
|
||||||
<span class="nav-item">
|
<span class="nav-item">
|
||||||
<a href="/{{ .Section }}">Back to {{ .Section }}</a>
|
<a href="/{{ . }}">Back to {{ . }}</a>
|
||||||
</span>
|
</span>
|
||||||
|
{{ end }}
|
||||||
<span class="nav-item">
|
<span class="nav-item">
|
||||||
<a href="/#contact">Contact</a>
|
<a href="/#contact">Contact</a>
|
||||||
</span>
|
</span>
|
||||||
|
@ -25,4 +27,4 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
Loading…
Reference in a new issue