Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme of giscus updates according to the page’s theme #248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hxglife
Copy link

@hxglife hxglife commented Nov 23, 2024

#220

giscus 评论的主题色(浅色/深色)跟随主题色变化。hugo 配置文件里要定义 giscus 默认主题为浅色:

giscus

[params.giscus]
repo = 'YOUR_GISCUS_REPO' # see https://giscus.app for more details
repoId = 'YOUR_GISCUS_REPO_ID'
category = 'YOUR__GISCUS_CATEGORY'
categoryId = 'YOUR_GISCUS_CATEGORY_ID'
mapping = 'pathname'
theme = 'light'
lang = 'zh-CN'

Copy link

vercel bot commented Nov 23, 2024

@hxglife is attempting to deploy a commit to the nanxiaobei's projects Team on Vercel.

A member of the Team first needs to authorize it.

@hxglife hxglife marked this pull request as ready for review November 23, 2024 07:25
@hxglife hxglife closed this Nov 23, 2024
@hxglife hxglife reopened this Nov 23, 2024
@nanxiaobei
Copy link
Owner

改变了很多其它地方的代码,最好只改动必要的地方

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants