From 4018d4b51d10427bc7f80da0b0d535a4b4787ba0 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Sun, 10 May 2026 23:33:57 +0200 Subject: [PATCH] Menu: Allow to explicitly override if a menu url is remote or not (#809) * Menu: Allow to explicitly override if a menu url is remote or not This can be very useful if a hugo website f.e. on GitHub pages is constructed from different individual spec repos but still represent one coherent site. * Rename param to bookNewTab --------- Co-authored-by: Alex Shpak --- layouts/_partials/docs/menu-hugo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_partials/docs/menu-hugo.html b/layouts/_partials/docs/menu-hugo.html index 12882e5..7e22139 100644 --- a/layouts/_partials/docs/menu-hugo.html +++ b/layouts/_partials/docs/menu-hugo.html @@ -17,7 +17,7 @@ {{- $class = $class | append "active" -}} {{- end -}}
  • - {{- $isRemote := (urls.Parse .URL).IsAbs -}} + {{- $isRemote := default (urls.Parse .URL).IsAbs .Params.bookNewTab -}}