Rename title overwrite properties to header_menu_title and navigation_menu_title
This commit is contained in:
parent
74bdc30f2b
commit
a28a76767a
|
@ -1,9 +1,13 @@
|
|||
---
|
||||
title: '{{ replace .Name "-" " " | title }}'
|
||||
|
||||
# The "name" value will be used as text for buttons and fixed menu items.
|
||||
# The "title" value will be used if value for "name" is not provided.
|
||||
#name: 'Short Title'
|
||||
# The "header_menu_title" value will be used as text for header buttons.
|
||||
# The "title" value will be used if value for "header_menu_title" is not provided.
|
||||
#header_menu_title: 'Short Menu Title'
|
||||
|
||||
# The "navigation_menu_title" value will be used as text for fixed menu items.
|
||||
# The "title" value will be used if value for "navigation_menu_title" is not provided.
|
||||
#navigation_menu_title: 'Short Menu Title'
|
||||
|
||||
# The "weight" will determine where this section appears on the "homepage".
|
||||
# A bigger weight will place the content more towards the bottom of the page.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "The Services I Offer"
|
||||
name: "My Services"
|
||||
header_menu_title: "My Services"
|
||||
navigation_menu_title: "Services"
|
||||
weight: 2
|
||||
header_menu: true
|
||||
---
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
{{ range where $sections ".Params.header_menu" "eq" true }}
|
||||
{{ $button_title := .Title }}
|
||||
{{ with .Params.Name }}
|
||||
{{ with .Params.header_menu_title }}
|
||||
{{ $button_title = . }}
|
||||
{{ end }}
|
||||
<a class='btn site-menu' data-title-anchor='{{ anchorize .Title }}'>{{ $button_title }}</a>
|
||||
|
@ -26,7 +26,7 @@
|
|||
</div>
|
||||
{{ range $index_val, $elem_val := $sections }}
|
||||
{{ $fnav_title := .Title }}
|
||||
{{ with .Params.Name }}
|
||||
{{ with .Params.navigation_menu_title }}
|
||||
{{ $fnav_title = . }}
|
||||
{{ end }}
|
||||
<div class='post-holder'>
|
||||
|
|
Loading…
Reference in a new issue