Skip to content

Commit 89a0296

Browse files
committed
hugo: use menu element urls relative to the base url
By using relative URLs, which are resolved from the defined base url, the menu link will not be considered a remote link and will subsequently leave the link to be opened in the same page. The hugo resolved URL on build will be the same as the absolute variant. This helps to reduce future incompatibility by minimizing overwritten templates.
1 parent f475979 commit 89a0296

File tree

2 files changed

+3
-35
lines changed

2 files changed

+3
-35
lines changed

config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ theme = "hugo-book"
55

66
[[menu.after]]
77
name = "Specifications"
8-
url = "https://uapi-group.org/specifications"
8+
url = "/specifications"
99
weight = 10
1010
[[menu.after]]
1111
name = "General Documentation"
12-
url = "https://uapi-group.org/docs"
12+
url = "/docs"
1313
weight = 11
1414
[[menu.after]]
1515
name = "Kernel Feature Ideas"
16-
url = "https://uapi-group.org/kernel-features"
16+
url = "/kernel-features"
1717
weight = 12
1818

1919
[[menu.after]]

layouts/partials/docs/menu-hugo.html

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)