Use relLangURL for detailed page path in navigation
This commit is contained in:
parent
8f5fd6e996
commit
86569bb78d
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@
|
||||||
{{ if isset .Params "external" }}
|
{{ if isset .Params "external" }}
|
||||||
<a class='btn site-menu' href='{{ .Params.external | absURL }}'>{{ $button_title }} <i class="fa fa-external-link"></i></a>
|
<a class='btn site-menu' href='{{ .Params.external | absURL }}'>{{ $button_title }} <i class="fa fa-external-link"></i></a>
|
||||||
{{ else if isset .Params "detailed_page_path" }}
|
{{ else if isset .Params "detailed_page_path" }}
|
||||||
<a class='btn site-menu' href='{{ .Params.detailed_page_path | relURL }}'>{{ $button_title }}</a>
|
<a class='btn site-menu' href='{{ .Params.detailed_page_path | relLangURL }}'>{{ $button_title }}</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $fnav_title := .Title }}{{ with .Params.navigation_menu_title }}{{ $fnav_title = . }}{{ end }}
|
{{ $fnav_title := .Title }}{{ with .Params.navigation_menu_title }}{{ $fnav_title = . }}{{ end }}
|
||||||
<a class='btn site-menu' data-title-anchor='{{ anchorize $fnav_title }}' href='#{{ anchorize $fnav_title }}'>{{ $button_title }}</a>
|
<a class='btn site-menu' data-title-anchor='{{ anchorize $fnav_title }}' href='#{{ anchorize $fnav_title }}'>{{ $button_title }}</a>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue