feat: multi-level sidebar

chore: support multiple search elements

chore: sidebar display toc on mobile view

chore: add hamburger menu to navbar on mobile

chore: add markdown link hook

for opening external link in new window

chore: add sidebar footer

- put search under params.type
- make navbar link aware of external link
This commit is contained in:
Xin
2023-08-06 15:23:37 +01:00
parent 7e37b73779
commit 2f34627da3
12 changed files with 304 additions and 77 deletions

View File

@ -66,9 +66,18 @@ defaultContentLanguage = 'en'
[[menu.main]]
name = 'Search'
weight = 35
params = { placeholder = 'Search documentation...' }
params = { type = 'search', placeholder = 'Search documentation...' }
[[menu.main]]
name = 'GitHub'
url = 'https://github.com'
weight = 40
params = { icon = 'github' }
[[menu.sidebar]]
name = 'More'
params = { type = 'separator' }
weight = 10
[[menu.sidebar]]
name = 'Hugo Docs ↗'
url = 'https://gohugo.io/documentation/'
weight = 20