chore(gitalk): upgrade

Closes #87
This commit is contained in:
zhaozhiyuan 2018-11-05 16:07:12 +08:00 committed by olOwOlo
parent 2517f748de
commit 1a1240ccf7
No known key found for this signature in database
GPG key ID: 456394B6E7A15EA6
4 changed files with 4 additions and 35 deletions

View file

@ -119,8 +119,8 @@ copyright = "" # default: author.name ↓ # 默认为下面配
# comment
gitmentJS = '<script src="https://cdn.jsdelivr.net/npm/gitment@0.0.3/dist/gitment.browser.min.js" crossorigin="anonymous"></script>'
gitmentCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitment@0.0.3/style/default.min.css" crossorigin="anonymous">'
gitalkJS = '<script src="https://cdn.jsdelivr.net/npm/gitalk@1.2.2/dist/gitalk.min.js" integrity="sha256-DcjhdbufsHMHflFjZtKNFnPKOAL2ybOxGcPOR4MtnJg=" crossorigin="anonymous"></script>'
gitalkCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1.2.2/dist/gitalk.css" integrity="sha256-rJVe5uyYRXdLM+Kkoj7JtN+9qI0bZTxkYTaNWODpg7U=" crossorigin="anonymous">'
gitalkJS = '<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>'
gitalkCSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">'
# Display a message at the beginning of an article to warn the readers that it's content may be outdated.
# 在文章开头显示提示信息,提醒读者文章内容可能过时。

View file

@ -83,13 +83,8 @@
<!-- gitalk -->
{{- if .Site.Params.gitalk.owner -}}
<div id="gitalk-container"></div>
{{ if .Site.Params.publicCDN.enable -}}
{{ .Site.Params.publicCDN.gitalkCSS | safeHTML }}
{{ .Site.Params.publicCDN.gitalkJS | safeHTML }}
{{- else -}}
<link rel="stylesheet" href="{{ "lib/gitalk/gitalk-1.2.2.min.css" | relURL }}">
<script src="{{ "lib/gitalk/gitalk-1.2.2.min.js" | relURL }}"></script>
{{- end }}
{{ .Site.Params.publicCDN.gitalkCSS | safeHTML }}
{{ .Site.Params.publicCDN.gitalkJS | safeHTML }}
<script type="text/javascript">
var gitalk = new Gitalk({
id: '{{ .Date }}',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long