From 1a1240ccf7a4ed8afc6c12e65c333b426248bb38 Mon Sep 17 00:00:00 2001 From: zhaozhiyuan Date: Mon, 5 Nov 2018 16:07:12 +0800 Subject: chore(gitalk): upgrade Closes #87 --- exampleSite/config.toml | 4 ++-- layouts/partials/comments.html | 9 ++------- static/lib/gitalk/gitalk-1.2.2.min.css | 7 ------- static/lib/gitalk/gitalk-1.2.2.min.js | 19 ------------------- 4 files changed, 4 insertions(+), 35 deletions(-) delete mode 100644 static/lib/gitalk/gitalk-1.2.2.min.css delete mode 100644 static/lib/gitalk/gitalk-1.2.2.min.js diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7702d50..72b2ddf 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -119,8 +119,8 @@ copyright = "" # default: author.name ↓ # 默认为下面配 # comment gitmentJS = '' gitmentCSS = '' - gitalkJS = '' - gitalkCSS = '' + 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 cac3546..c93c47d 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -83,13 +83,8 @@ {{- if .Site.Params.gitalk.owner -}}
- {{ if .Site.Params.publicCDN.enable -}} - {{ .Site.Params.publicCDN.gitalkCSS | safeHTML }} - {{ .Site.Params.publicCDN.gitalkJS | safeHTML }} - {{- else -}} - - - {{- end }} + {{ .Site.Params.publicCDN.gitalkCSS | safeHTML }} + {{ .Site.Params.publicCDN.gitalkJS | safeHTML }}