From 1da110d6b1d03824eba1aed1cf14ca5dee763e58 Mon Sep 17 00:00:00 2001 From: sslyxhz Date: Sun, 11 Mar 2018 14:47:13 +0800 Subject: feat: add gitment module (#36) --- layouts/partials/comments.html | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index afce2a3..eb75615 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -15,7 +15,7 @@ })(); - {{- end }} + {{- end -}} {{- if and .Site.Params.changyanAppid .Site.Params.changyanAppkey -}} @@ -30,7 +30,7 @@ if (width < 960) {window.document.write(' - {{- end }} + {{- end -}} {{- if .Site.Params.livereUID -}} @@ -50,5 +50,34 @@ + {{- end -}} + + + {{- if .Site.Params.gitment.owner -}} +
+ {{ if .Site.Params.publicCDN.enable -}} + {{ .Site.Params.publicCDN.gitmentCSS | safeHTML }} + {{ .Site.Params.publicCDN.gitmentJS | safeHTML }} + {{- else -}} + + {{- end }} + + + {{- end }} + {{- end }} \ No newline at end of file -- cgit v1.2.3