Added custom link capability for tabs. Fixes #4
This commit is contained in:
parent
86664c932f
commit
7265820ab5
2 changed files with 5 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue