use param button for main nav link text for pages if it's set
This commit is contained in:
parent
cb92d2fdd9
commit
569a2672e4
|
@ -12,7 +12,9 @@
|
||||||
{{ $pagesDir := .Site.Params.Pages | default (slice "pages") }}
|
{{ $pagesDir := .Site.Params.Pages | default (slice "pages") }}
|
||||||
{{ $pagesList := where .Site.RegularPages "Section" "in" $pagesDir }}
|
{{ $pagesList := where .Site.RegularPages "Section" "in" $pagesDir }}
|
||||||
{{ range $pagesList }}
|
{{ range $pagesList }}
|
||||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .Permalink }}">
|
||||||
|
{{ or .Params.Button .Title }}
|
||||||
|
</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
|
|
Loading…
Reference in New Issue