From 5f8b79f942f94da8954d8c28c8704aa5af045a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=97=E8=BF=9C?= Date: Thu, 5 Apr 2018 21:44:09 +0800 Subject: feat: add gitalk (#51) --- layouts/partials/comments.html | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index eb75615..440240a 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -80,4 +80,30 @@ {{- end }} -{{- end }} \ No newline at end of file + + {{- if .Site.Params.gitalk.owner -}} +
+ {{ if .Site.Params.publicCDN.enable -}} + {{ .Site.Params.publicCDN.gitalkCSS | safeHTML }} + {{ .Site.Params.publicCDN.gitalkJS | safeHTML }} + {{- else -}} + + + {{- end }} + + + {{- end }} + +{{- end }} -- cgit v1.2.3