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

github.com/kongdivin/hugo-theme-okayish-blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivin Kong <divin@okayish.dev>2020-02-17 02:08:56 +0300
committerDivin Kong <divin@okayish.dev>2020-02-17 02:08:56 +0300
commitbe642e1e571d5d74ddb11036450acced0bbe365c (patch)
tree7a8fe6a99c945d67cc40e990b4e982bcedc87190
parent2b1da235a229cfab5898b1c767eaef7c62c74dda (diff)
Resolve #1
-rw-r--r--README.md4
-rw-r--r--layouts/_default/single.html9
2 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index b4e6022..c8a763c 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,7 @@ theme](https://raw.githubusercontent.com/kongdivin/hugo-theme-okayish-blog/maste
* Google `site:` Search
* Google Analytics
* Share links (Facebook, Twitter, and LinkedIn)
+* Disqus Comments
* Provide meta tags for [Open Graph](https://ogp.me/), [Twitter
Card](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards),
and [Schema.org](https://schema.org/)
@@ -69,6 +70,9 @@ theme = "hugo-theme-okayish-blog"
# Provide this id to enable Google Analytics
googleAnalytics = "UA-xxxxxxxxx-x"
+# Provide the shortname to enable Disqus comments
+disqusShortname = "ok-ish-blog"
+
[params]
# These will be used for OpenGraph, Twitter Card and Schema.org
description = "Your site's description"
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index ce3b482..4faa746 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -18,4 +18,13 @@
{{ partial "single/pagination.html" . }}
</div>
</footer>
+
+{{ if $.Site.DisqusShortname }}
+<div class="p-strip u-no-padding--bottom is-shallow">
+ <div class="row">
+ {{ template "_internal/disqus.html" . }}
+ </div>
+</div>
+{{ end }}
+
{{ end }} \ No newline at end of file