mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +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
|
@ -12,9 +12,11 @@
|
|||
<span class="nav-item">
|
||||
<a href="/#about">About</a>
|
||||
</span>
|
||||
{{ with .Section }}
|
||||
<span class="nav-item">
|
||||
<a href="/{{ .Section }}">Back to {{ .Section }}</a>
|
||||
<a href="/{{ . }}">Back to {{ . }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
<span class="nav-item">
|
||||
<a href="/#contact">Contact</a>
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue