Skip to content

Commit 77c46d3

Browse files
committed
hugo: replace threedash menu separator with css
This makes the menu separator a stylistic element and reduces the need for a custom hugo-menu template to skip treating the menu element as a link item. This helps to reduce future incompatibility by minimizing overwritten templates.
1 parent 24bf5a4 commit 77c46d3

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

website/assets/_custom.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nav>ul:last-of-type>li:last-child::before {
2+
content: "";
3+
display: inline-block;
4+
margin: 0.5em 0;
5+
}

website/config.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ theme = "hugo-book"
77
name = "⬅️ Back to top"
88
url = "https://uapi-group.org/"
99
weight = 1
10-
[[menu.before]]
11-
name = ""
12-
weight = 2
13-
14-
# Uncomment to show second separator after more content files were added
15-
#
16-
#[[menu.after]]
17-
# name = "⸻"
18-
# weight = 10
1910

2011
[[menu.after]]
2112
name = "Collaborate on Github"

0 commit comments

Comments
 (0)