From f4bcf93d0ea8bde5a68da52554499f5e8dd1d91d Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Mon, 5 Nov 2018 21:19:43 +0800 Subject: [PATCH] refactor(comment): remove local js and css files BREAKING CHANGE: Remove local comment js/css files. --- exampleSite/config.toml | 5 ----- layouts/partials/comments.html | 13 ++++--------- static/lib/gitment/gitment-0.0.3.min.css | 1 - static/lib/gitment/gitment-0.0.3.min.js | 1 - 4 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 static/lib/gitment/gitment-0.0.3.min.css delete mode 100644 static/lib/gitment/gitment-0.0.3.min.js diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 72b2ddf3c..ba4b66168 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -116,11 +116,6 @@ copyright = "" # default: author.name ↓ # 默认为下面配 flowchartDiagramsJS = ' ' sequenceDiagramsCSS = '' sequenceDiagramsJS = ' ' - # comment - gitmentJS = '' - gitmentCSS = '' - gitalkJS = '' - gitalkCSS = '' # Display a message at the beginning of an article to warn the readers that it's content may be outdated. # 在文章开头显示提示信息,提醒读者文章内容可能过时。 diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index c93c47d3b..f8411d286 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -55,13 +55,8 @@ {{- if .Site.Params.gitment.owner -}}
- {{ if .Site.Params.publicCDN.enable -}} - {{ .Site.Params.publicCDN.gitmentCSS | safeHTML }} - {{ .Site.Params.publicCDN.gitmentJS | safeHTML }} - {{- else -}} - - - {{- end }} + +