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

github.com/curttimson/hugo-theme-dopetrope.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Timson <curt@live.co.uk>2018-02-11 16:50:01 +0300
committerCurtis Timson <curt@live.co.uk>2018-02-11 16:50:01 +0300
commit352f543948611a455535e8b6cf7781ea0fb34a46 (patch)
treef86f44ff8b8c39bd1590af635ca51e6a916e69a8 /layouts
parent2936c0f7c244fa8341f8d4b0f36ff917d55b696a (diff)
:bug: Prevent disqus error on homepage
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html1
-rw-r--r--layouts/partials/blog.html1
-rw-r--r--layouts/partials/scripts/disqus.html4
3 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 30c9dfa..93054e3 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -15,7 +15,6 @@
<div id="header">
{{ partial "logo.html" . }}
-
{{ partial "nav.html" . }}
</div>
diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html
index d7feb25..8895f52 100644
--- a/layouts/partials/blog.html
+++ b/layouts/partials/blog.html
@@ -17,6 +17,7 @@
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button icon fa-file-text">Continue Reading</a></li>
<!-- <li><a href="#" class="button alt icon fa-comment">33 comments</a></li> -->
+
</ul>
</footer>
</section>
diff --git a/layouts/partials/scripts/disqus.html b/layouts/partials/scripts/disqus.html
index 6ca2a83..a6b85d8 100644
--- a/layouts/partials/scripts/disqus.html
+++ b/layouts/partials/scripts/disqus.html
@@ -1,6 +1,6 @@
{{ if .Site.Params.Settings.disqus }}
+{{ if .Params.disqusid }}
<script>
-
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
@@ -17,4 +17,6 @@
(d.head || d.body).appendChild(s);
})();
</script>
+ <script id="dsq-count-scr" src="//hugo-dopetrope.disqus.com/count.js" async></script>
+{{ end }}
{{ end }} \ No newline at end of file