Skip to content

Commit

Permalink
sync theme and update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xwi88 committed May 26, 2022
1 parent 6a6941c commit f7569b4
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 1,957 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ run: prod

# uglifyjs 3.15.2, shall not use npx babel will import npm module...; latest version, use theme.js in assets/js/theme.js, old is theme.min.js
uglifyjs:
@mkdir -p ${BASEDIR}/src/js/theme.js -o ${BASEDIR}/assets/js
@uglifyjs ${BASEDIR}/src/js/theme.js -o ${BASEDIR}/assets/js/theme.js -c -b
# @uglifyjs ${BASEDIR}/src/js/theme.js -o ${BASEDIR}/assets/js/theme.min.js -c -m --source-map "url=theme.min.js.map,names=false,filename=theme.js,base='${BASEDIR}/assets/js'"
# @npx babel ${BASEDIR}/src/js/theme.js --out-file ${BASEDIR}/assets/js/theme.min.js --source-maps
Expand Down
4 changes: 0 additions & 4 deletions assets/css/_custom.scss

This file was deleted.

4 changes: 0 additions & 4 deletions assets/css/_override.scss

This file was deleted.

578 changes: 0 additions & 578 deletions assets/js/theme.js

This file was deleted.

34 changes: 17 additions & 17 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -757,26 +757,26 @@ enableEmoji = true
label = "" # default Comment
lightTheme = "github-light"
darkTheme = "github-dark"
# giscus comment config (https://giscus.app/)
# giscus comment 评论系统设置 (https://giscus.app/zh-CN)
[params.page.comment.giscus]
# To enable giscus, the github discussions based comment section,
# Follow the steps described to enable giscus and get the values
# needed to populate the below information.
# https://www.joelnitta.com/posts/2021-11-24_using-giscus/
# You can refer to the official documentation of giscus to use the following configuration.
# 你可以参考官方文档来使用下列配置
enable = true
category = "Announcements" # Announcements, Comments
lang = "en" # 保持 en, 只需要控制每篇文章的 url 不一样即可
repo = "xwi88/hugo-comment" # Entering repo will enable giscus
repo_id = "R_kgDOG7xEcg" # query by GraphQL API, https://docs.github.com/en/graphql/overview/explorer
category_id = "DIC_kwDOG7xEcs4CN-KB" # query by GraphQL API, https://docs.github.com/en/graphql/overview/explorer
repo = "xwi88/hugo-comment"
repoId = "R_kgDOG7xEcg"
category = "Announcements"
categoryId = "DIC_kwDOG7xEcs4CN-KB"
# automatically adapt the current theme i18n configuration when empty
# 为空时自动适配当前主题 i18n 配置
lang = ""
mapping = "pathname"
reactions_enabled = "0"
emit_metadata = "0"
input_position = "top"
lightTheme = "light" # github theme
darkTheme = "dark" # github theme
crossorigin = "anonymous"
label = "Comment" # Label applied to issue by utteranc.es bot

reactionsEnabled = "1"
emitMetadata = "0"
inputPosition = "bottom" # top
lazyLoading = false
lightTheme = "light"
darkTheme = "dark"
# xwi88 自定义配置 xwi88Cfg
[params.xwi88Cfg]
[params.xwi88Cfg.summary]
Expand Down
198 changes: 0 additions & 198 deletions i18n/en.toml

This file was deleted.

Loading

0 comments on commit f7569b4

Please sign in to comment.