diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 669dc06a1581212c915807dc26e845df10c1bb60..b104a7c73f0b58ca956a10534a9c066b9bfe5200 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -208,7 +208,7 @@ enableEmoji = true # Disqus Comment Config (https://disqus.com/) [languages.en.params.comment.disqus] # Disqus shortname to use Disqus in posts - shortname = "dillonzq" + shortname = "" # Gittalk Comment Config (https://github.com/gitalk/gitalk) [languages.en.params.comment.gitalk] owner = "" @@ -423,7 +423,7 @@ enableEmoji = true # Disqus 评论系统设置 (https://disqus.com/) [languages.zh-CN.params.comment.disqus] # Disqus 的用户名,用来在文章中启用 Disqus 评论系统 - shortname = "dillonzq" + shortname = "" # Gittalk 评论系统设置 (https://github.com/gitalk/gitalk) [languages.zh-CN.params.comment.gitalk] owner = "" @@ -638,7 +638,7 @@ enableEmoji = true # Disqus Comment Config (https://disqus.com/) [languages.fr.params.comment.disqus] # Disqus shortname to use Disqus in posts - shortname = "dillonzq" + shortname = "" # Gittalk Comment Config (https://github.com/gitalk/gitalk) [languages.fr.params.comment.gitalk] owner = "" @@ -674,6 +674,9 @@ enableEmoji = true # public git repo url only then enableGitInfo is true # 公共 git 仓库路径,仅在 enableGitInfo 设为 true 时有效 gitRepo = "https://github.com/dillonzq/LoveIt" + # which hash function used for SRI, when empty, no SRI is used ("sha256", "sha384", "sha512", "md5") + # 哪种哈希函数用来 SRI, 为空时表示不使用 SRI ("sha256", "sha384", "sha512", "md5") + fingerprint = "" # Header info # 页面头部导航栏信息 [params.header] diff --git a/exampleSite/content/posts/theme-documentation-basics.en.md b/exampleSite/content/posts/theme-documentation-basics.en.md index 53f8fcd5454287ea9ce6f3053902dbc496d2ea93..14b2b16074f601ad4c12a360f90cdb266442fd5a 100644 --- a/exampleSite/content/posts/theme-documentation-basics.en.md +++ b/exampleSite/content/posts/theme-documentation-basics.en.md @@ -193,6 +193,9 @@ Note that some of these parameters are explained in details in other sections of defaultTheme = "auto" # public git repo url only then enableGitInfo is true gitRepo = "" + # LoveIt :(fas fa-greater-than-equal): :(far fa-file-archive): v0.1.1 + # which hash function used for SRI, when empty, no SRI is used ("sha256", "sha384", "sha512", "md5") + fingerprint = "" # Header info [params.header] # desktop header mode ("fixed", "normal", "auto") diff --git a/exampleSite/content/posts/theme-documentation-basics.fr.md b/exampleSite/content/posts/theme-documentation-basics.fr.md index 30b47697a65b1b4cc17c2d1f5a281a81814a181b..90e39756b58cb3e28ca0975a30fd30744ed8b3c3 100644 --- a/exampleSite/content/posts/theme-documentation-basics.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics.fr.md @@ -198,6 +198,9 @@ Note that some of these parameters are explained in details in other sections of defaultTheme = "auto" # public git repo url only then enableGitInfo is true gitRepo = "" + # LoveIt :(fas fa-greater-than-equal): :(far fa-file-archive): v0.1.1 + # which hash function used for SRI, when empty, no SRI is used ("sha256", "sha384", "sha512", "md5") + fingerprint = "" # Header info [params.header] # desktop header mode ("fixed", "normal", "auto") diff --git a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics.zh-cn.md index 46bf18125cf8704a8b0375301d35bf161eff5bf7..07cd0e72dc88048056e6b33f86dc80c9d566e901 100644 --- a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics.zh-cn.md @@ -193,6 +193,9 @@ hugo defaultTheme = "auto" # 公共 git 仓库路径,仅在 enableGitInfo 设为 true 时有效 gitRepo = "" + # LoveIt :(fas fa-greater-than-equal): :(far fa-file-archive): v0.1.1 + # 哪种哈希函数用来 SRI, 为空时表示不使用 SRI ("sha256", "sha384", "sha512", "md5") + fingerprint = "" # 页面头部导航栏信息 [params.header] # 桌面端导航栏模式 ("fixed", "normal", "auto") diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 90f5b6fbe80943138f8da92f45d30142bfbc2094..80eac99dc48d65c9dd0533968adf259e06361ece 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,6 +8,7 @@ {{- if eq hugo.Environment "production" -}} {{- $scratch.Set "production" true -}} {{- $scratch.Set "CDN" .Site.Params.cdn -}} + {{- $scratch.Set "fingerprint" .Site.Params.fingerprint -}} {{- end -}} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index ee74fc7e6b15a0b8bde5e9949274682ba5464ea6..cd95510773f35d44078f6493ffec576eb0da7fdb 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -11,7 +11,7 @@ {{- /* Title */ -}}