diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-12 23:59:08 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-12 23:59:08 +0800 |
commit | 5fb5a658e8ec8f26c4cb67bc306d1827b781962c (patch) | |
tree | 3169aaebffb47ab817966a2b07da890855d268fc /exampleSite | |
parent | 8e36a302cec6df297c00be4555ea0a6d8bd20114 (diff) |
feat: config public cdn
deprecated bootcdn param
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0ca7001..970a32f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -52,17 +52,17 @@ copyright = "" # default: author.name ↓ # 默认为下面配 archive-paginate = 3 # show word count and read time ? # 是否显示字数统计与阅读时间 - moreMeta = true + moreMeta = false # 一些全局开关,你可以在每一篇内容的 front matter 中单独关闭某些选项 # Some global options, you can close something in front matter. toc = true # 是否开启目录 fancybox = true # see https://github.com/fancyapps/fancybox # 是否启用fancybox(图片可点击) - bootcdn = false # In china. # 是否使用bootcdn(针对大陆推荐使用) + bootcdn = false # In china. @Deprecated: use [params.publicCDN] # 是否使用bootcdn(@Deprecated: 请使用[params.publicCDN]) mathjax = true # see https://www.mathjax.org/ # 是否使用mathjax(数学公式) linkToMarkDown = false # if you config contentCopyright and hugo output .md files. # 是否在链接到markdown原始文件(如果你配置了下面的许可协议并允许hugo生成markdown文件) - contentCopyright = "<a rel=\"license\" href=\"https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License\" target=\"_blank\">Creative Commons Attribution-ShareAlike License</a>" + contentCopyright = '<a rel="license" href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" target="_blank">Creative Commons Attribution-ShareAlike License</a>' changyanAppid = "" # Changyan app id # 畅言 changyanAppkey = "" # Changyan app key @@ -71,6 +71,13 @@ copyright = "" # default: author.name ↓ # 默认为下面配 baidu_verification = "" # Baidu Verification google_verification = "" # Google_Verification # 谷歌 + [params.publicCDN] # load these files from public cdn # 启用公共CDN,需自行定义 + enable = false + jquery = '<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>' + slideout = '<script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>' + fancyboxJs = '<script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>' + fancyboxCss = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">' + [params.reward] # 文章打赏 enable = false wechat = "/path/to/your/wechat-qr-code.png" # 微信二维码 |