summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorAnoduck, The Anonymous Duck <9925396+anoduck@users.noreply.github.com>2025-03-08 01:34:48 +0000
committerGitHub <noreply@github.com>2025-03-08 01:34:48 +0000
commit8f23027ad1182c8ba9c813a308ace4404a9dfe07 (patch)
tree2f2622bc5a18b77e4be5b7078c9a31a8af3d2d76 /layouts
parent14db927174d6bc3d8c0745be5971f80c2a154fd1 (diff)
parent6ddbeaac0d9cf708980b3288c445586b5f49b65b (diff)
Merge pull request #83 from anoduck/develop
Develop
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/partials/disqus.html24
2 files changed, 1 insertions, 27 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f14768d..4d15895 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -40,8 +40,6 @@
</div>
</div>
{{ end -}}
- <div>
- {{ partial "disqus.html" . }}
- </div>
</div>
+{{ template "_internal/disqus.html" . }}
{{ end -}} \ No newline at end of file
diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html
deleted file mode 100644
index 8caab7b..0000000
--- a/layouts/partials/disqus.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{{- $pc := .Site.Config.Privacy.Disqus -}}
-{{- if not $pc.Disable -}}
-{{ if .Site.Config.Services.Disqus.Shortname }}<div id="disqus_thread"></div>
-<script>
- window.disqus_config = function () {
- {{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}}
- {{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}}
- {{with .Params.disqus_url }}this.page.url = '{{ . | html }}';{{end}}
- };
- (function() {
- // if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
- // document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
- // return;
- // }
- var d = document, s = d.createElement('script'); s.async = true;
- s.src = '//' + {{ .Site.Config.Services.Disqus.Shortname }} + '.disqus.com/embed.js';
- console.log(s.src);
- s.setAttribute('data-timestamp', +new Date());
- (d.head || d.body).appendChild(s);
- })();
-</script>
-<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
-<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{{end}}
-{{- end -}} \ No newline at end of file