Move menu.style config to menu_style

This commit is contained in:
Will Faught
2024-06-03 20:06:50 -07:00
parent 9e9e419cc5
commit ba0dd5afe8
2 changed files with 2 additions and 4 deletions

View File

@@ -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"
keyword_style = "text" # Must be "text" or "pills"
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_description = "" # Appears above the menu, below the site title, if set
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)"
web_master = "" # Example is "will.faught@example.com (Will Faught)"
[paige.menu]
style = "links" # Must be "links", "pills", "tabs", or "underline"
[paige.search]
hide_page = false
```

View File

@@ -12,7 +12,7 @@
{{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }}
{{ with $page.Param "paige.menu.style" }}
{{ with $page.Param "paige.menu_style" }}
{{ if eq . "pills" }}
{{ $pills = true }}
{{ else if eq . "tabs" }}