Skip to content

Commit de4cf88

Browse files
authored
v1.2.0 add toc
1 parent 6a66b7d commit de4cf88

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

hugo.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@ menus:
8585
icon: email
8686

8787
params:
88+
header:
89+
sticky: true
90+
logo:
91+
image: "https://avatars-githubusercontent-webp.webp.se/u/25655983"
92+
link: "/"
93+
showThemeSwitch: true
94+
showDarkModeSwitch: true
95+
showLanguageSwitch: true
96+
languageSwitchMode: "dropdown"
97+
toc:
98+
position: left # left | right | card
99+
maxWidth: "280px"
100+
maxHeight: "80vh"
101+
88102
description: "苹果派派"
89103
keywords: ["IMZCC", "苹果派派", "Hugo", "Blog", "Theme", "Technology", "Programming"]
90104
defaultAuthor: "苹果派派" # Default author name, used in posts without an author set
@@ -93,10 +107,6 @@ params:
93107
shortName: "苹果派派" # PWA
94108
images:
95109
- "/images/og-default.avif"
96-
97-
logo:
98-
image: "https://avatars-githubusercontent-webp.webp.se/u/25655983" # Logo path rel to static folder, leave empty use site title and primary color
99-
link: "/" # click to home page
100110

101111
favicon:
102112
svg: "https://avatars-githubusercontent-webp.webp.se/u/25655983" # SVG format favicon (recommended)
@@ -120,14 +130,6 @@ params:
120130
url: "mailto:i@imzcc.com"
121131
icon: "email"
122132

123-
# UI Components Control
124-
showThemeSwitch: true # Set to false to hide theme style switcher (palette icon)
125-
showDarkModeSwitch: true # Set to false to hide dark mode switcher (sun/moon icon)
126-
showLanguageSwitch: true # Set to false to hide language switcher
127-
128-
# Header sticky effect
129-
stickyHeader: true # Set to true to enable sticky navigation bar
130-
131133
# default color scheme
132134
colorScheme: "Dracula"
133135
themes:

0 commit comments

Comments
 (0)