From 98d19b8e95019534622fd4c5eae707423730df2c Mon Sep 17 00:00:00 2001 From: Giuseppe Masino Date: Fri, 18 Feb 2022 17:35:02 +0100 Subject: [PATCH] Make menu entries' link relative (#421) This change allows hugo to build pages correcly when `canonifyURLs = false` and `relativeURLs = true`. Otherwise the links on the menu will be canonicalized regardless of configuration. This results in broken sites in a number of situations, such as sites served behind a reverse-proxy that don't want to account for the prefix they're served under. --- layouts/partials/docs/menu-filetree.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index f8290df..dd61af7 100644 --- a/layouts/partials/docs/menu-filetree.html +++ b/layouts/partials/docs/menu-filetree.html @@ -31,12 +31,12 @@ {{ if .Page.Params.bookCollapseSection }} {{ else if .Page.Content }} - + {{- partial "docs/title" .Page -}} {{ else }}