Move menu.style config to menu_style
This commit is contained in:
@@ -180,6 +180,7 @@ external_link_new_tab = false # Open external links in new tabs
|
|||||||
file_edit_url = "" # Example is "https://github.com/willfaught/paige/edit/master/content/%s"
|
file_edit_url = "" # Example is "https://github.com/willfaught/paige/edit/master/content/%s"
|
||||||
keyword_style = "text" # Must be "text" or "pills"
|
keyword_style = "text" # Must be "text" or "pills"
|
||||||
math = false # Enable math typesetting
|
math = false # Enable math typesetting
|
||||||
|
menu_style = "links" # Must be "links", "pills", "tabs", or "underline"
|
||||||
site_title = "" # Appears above the menu, above the site description, if set
|
site_title = "" # Appears above the menu, above the site description, if set
|
||||||
site_description = "" # Appears above the menu, below the site title, if set
|
site_description = "" # Appears above the menu, below the site title, if set
|
||||||
style = "" # CSS included at the end of the stylesheet, before style-last.css
|
style = "" # CSS included at the end of the stylesheet, before style-last.css
|
||||||
@@ -283,9 +284,6 @@ logo = "" # Example is "/logo.webp"
|
|||||||
managing_editor = "" # Example is "will.faught@example.com (Will Faught)"
|
managing_editor = "" # Example is "will.faught@example.com (Will Faught)"
|
||||||
web_master = "" # Example is "will.faught@example.com (Will Faught)"
|
web_master = "" # Example is "will.faught@example.com (Will Faught)"
|
||||||
|
|
||||||
[paige.menu]
|
|
||||||
style = "links" # Must be "links", "pills", "tabs", or "underline"
|
|
||||||
|
|
||||||
[paige.search]
|
[paige.search]
|
||||||
hide_page = false
|
hide_page = false
|
||||||
```
|
```
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
{{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }}
|
{{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }}
|
||||||
|
|
||||||
{{ with $page.Param "paige.menu.style" }}
|
{{ with $page.Param "paige.menu_style" }}
|
||||||
{{ if eq . "pills" }}
|
{{ if eq . "pills" }}
|
||||||
{{ $pills = true }}
|
{{ $pills = true }}
|
||||||
{{ else if eq . "tabs" }}
|
{{ else if eq . "tabs" }}
|
||||||
|
Reference in New Issue
Block a user