Skip to content

[FEATURE] 如何在 config.toml 中配置评论系统,使其保持最新的版本? #303

Answered by HEIGE-PCloud
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

你可以配置 your_site/assets/data/cdn/jsdelivr.yml 并在 config.toml 中配置 params.cdn 选项指定你想使用的版本。

  # CDN config for third-party library files
  # 第三方库文件的 CDN 设置
  [params.cdn]
    # CDN data file name, disabled by default
    # ("jsdelivr.yml")
    # located in "themes/DoIt/assets/data/cdn/" directory
    # you can store your own data files in the same path under your project:
    # "assets/data/cdn/"
    # CDN 数据文件名称, 默认不启用
    # ("jsdelivr.yml")
    # 位于 "themes/DoIt/assets/data/cdn/" 目录
    # 可以在你的项目下相同路径存放你自己的数据文件:
    # "assets/data/cdn/"
    data = ""

在这里 https://github.com/HEIGE-PCloud/DoIt/blob/main/assets/data/cdn/jsdelivr.yml 查看默认的配置文件。

Reference: https://hugodoit.pages.dev/zh-cn/theme-d…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@HEIGE-PCloud
Comment options

Answer selected by HEIGE-PCloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #302 on October 28, 2021 12:23.