Added custom link capability for tabs. Fixes #4

This commit is contained in:
Seth 2017-03-08 04:16:13 -05:00
parent 86664c932f
commit 7265820ab5
2 changed files with 5 additions and 1 deletions

View file

@ -17,7 +17,7 @@
<nav>
<ul>
{{ range .Data.Pages.ByWeight }}
<li><a href="#{{ .File.TranslationBaseName }}">{{ if .GetParam "menuname" }}{{ .GetParam "menuname" }}{{ else }}{{ .Title }}{{ end }}</a></li>
<li>{{ if isset .Params "link" }}<a href="{{ index .Params "link" }}"{{else}}<a href="#{{ .File.TranslationBaseName }}"{{end}}>{{ if .GetParam "menuname" }}{{ .GetParam "menuname" }}{{ else }}{{ .Title }}{{ end }}</a></li>
{{ end }}
</ul>
</nav>