aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-11-05 21:19:43 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-11-05 21:19:43 +0800
commitf4bcf93d0ea8bde5a68da52554499f5e8dd1d91d (patch)
tree7b1938d13a16f165503422a0d28e76bd9f2a5b3e /layouts/partials
parent9d8940b4f67fd042c98b045633bf09913fb266a1 (diff)
refactor(comment): remove local js and css files
BREAKING CHANGE: Remove local comment js/css files.
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/comments.html13
1 files changed, 4 insertions, 9 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index c93c47d..f8411d2 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -55,13 +55,8 @@
<!-- gitment -->
{{- if .Site.Params.gitment.owner -}}
<div id="comments-gitment"></div>
- {{ if .Site.Params.publicCDN.enable -}}
- {{ .Site.Params.publicCDN.gitmentCSS | safeHTML }}
- {{ .Site.Params.publicCDN.gitmentJS | safeHTML }}
- {{- else -}}
- <link rel="stylesheet" href="{{ "lib/gitment/gitment-0.0.3.min.css" | relURL }}">
- <script src="{{ "lib/gitment/gitment-0.0.3.min.js" | relURL }}"></script>
- {{- end }}
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitment@0.0.3/style/default.min.css" crossorigin="anonymous">
+ <script src="https://cdn.jsdelivr.net/npm/gitment@0.0.3/dist/gitment.browser.min.js" crossorigin="anonymous"></script>
<script type="text/javascript">
var gitment = new Gitment({
id: '{{ .Date }}',
@@ -83,8 +78,8 @@
<!-- gitalk -->
{{- if .Site.Params.gitalk.owner -}}
<div id="gitalk-container"></div>
- {{ .Site.Params.publicCDN.gitalkCSS | safeHTML }}
- {{ .Site.Params.publicCDN.gitalkJS | safeHTML }}
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css" crossorigin="anonymous">
+ <script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js" crossorigin="anonymous"></script>
<script type="text/javascript">
var gitalk = new Gitalk({
id: '{{ .Date }}',