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

github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoderzh <coderzh@gmail.com>2018-07-22 18:39:17 +0300
committercoderzh <coderzh@gmail.com>2018-07-22 18:39:17 +0300
commitec6a99061ae661b85924af126a532ca48008afaa (patch)
treef4926e4f2aa77a7d44382fc596a2322c3d5adc89
parenteda9c351a538558f42a0b086a9320c99dd98e579 (diff)
Comment area failed to load #20
-rw-r--r--layouts/partials/comment.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html
index 8583518..693642e 100644
--- a/layouts/partials/comment.html
+++ b/layouts/partials/comment.html
@@ -1,10 +1,10 @@
-{{ if .Site.Params.DuoShuoShortName }}
+{{ if .Site.Params.DuoShuo.ShortName }}
<section class="comment">
<div class="ds-thread" data-thread-key="{{ .Permalink }}"
data-title="{{ .Title }}" data-url="{{ .Permalink }}"></div>
</section>
<script type="text/javascript">
-var duoshuoQuery = {short_name:"{{ .Site.Params.DuoShuoShortName }}"};
+var duoshuoQuery = {short_name:"{{ .Site.Params.DuoShuo.ShortName }}"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
@@ -16,7 +16,7 @@ var duoshuoQuery = {short_name:"{{ .Site.Params.DuoShuoShortName }}"};
</script>
{{ end }}
-{{ if .Site.Params.DisqusShortName }}
+{{ if .Site.Params.Disqus.ShortName }}
<section class="comment">
<div id="disqus_thread"></div>
</section>
@@ -32,7 +32,7 @@ this.page.identifier = {{ .Permalink }};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
-s.src = '//{{ .Site.Params.DisqusShortName }}.disqus.com/embed.js';
+s.src = '//{{ .Site.Params.Disqus.ShortName }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);