From 1649a9566e6fe59155336a1cacd2b44c8c7ba298 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 7 Apr 2023 23:19:18 -0700 Subject: [PATCH] Add tabs menu style --- README.md | 2 +- layouts/partials/paige/menu.html | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ea71a387..1149f1be 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ paige: math: false # Enable math typesetting menu: breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items - style: "pills" # Must be "links", "pills", or "underline" + style: "pills" # Must be "links", "pills", "tabs", or "underline" rss: hide_page: false managing_editor: "" diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index 77690312..75af2536 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -3,6 +3,7 @@ {{ $basepath := path.Clean (urls.Parse site.BaseURL).Path }} {{ $breakpoint := $page.Param "paige.menu.breakpoint" | default "sm" }} {{ $pills := false }} +{{ $tabs := false }} {{ $underline := false }} {{ if eq $basepath "/" }} @@ -14,6 +15,8 @@ {{ with $page.Param "paige.menu.style" }} {{ if eq . "pills" }} {{ $pills = true }} + {{ else if eq . "tabs" }} + {{ $tabs = true }} {{ else if eq . "underline" }} {{ $underline = true }} {{ else if ne . "links" }} @@ -29,7 +32,7 @@