Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-03-10 06:50:07 +0300
committerDillon <dillonzq@outlook.com>2020-03-10 06:50:07 +0300
commit86c6972cf21a92f86b1e659939e5fd1559146e47 (patch)
treea7b747220839636090040cd29629855e6f92b509 /layouts
parentda71fee304009e90820dd72c534e1606b55de68a (diff)
feat(comment): add enable for disqus and gitalk
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/comment.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html
index b24ab1a..6a97d9b 100644
--- a/layouts/partials/comment.html
+++ b/layouts/partials/comment.html
@@ -4,9 +4,9 @@
{{- $CDN := $scratch.Get "CDN" -}}
{{- /* Disqus Comment System */ -}}
- {{- with .Site.Params.comment.disqus.shortname -}}
+ {{- if .Site.Params.comment.disqus.enable -}}
<div id="disqus_thread"></div>
- {{- $script := printf `<script defer src="https://%s.disqus.com/embed.js"></script>` . -}}
+ {{- $script := printf `<script defer src="https://%s.disqus.com/embed.js"></script>` .Site.Params.comment.disqus.shortname -}}
{{- slice $script | $scratch.Add "scriptCDN" -}}
<noscript>
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
@@ -14,7 +14,7 @@
{{- end -}}
{{- /* Gitalk Comment System */ -}}
- {{- if .Site.Params.comment.gitalk.owner -}}
+ {{- if .Site.Params.comment.gitalk.enable -}}
{{- $gitalk := .Site.Params.comment.gitalk -}}
<div id="gitalk"></div>
{{- with $CDN.gitalkCSS -}}