diff options
author | Divin Kong <divin@okayish.dev> | 2020-02-17 02:08:56 +0300 |
---|---|---|
committer | Divin Kong <divin@okayish.dev> | 2020-02-17 02:08:56 +0300 |
commit | be642e1e571d5d74ddb11036450acced0bbe365c (patch) | |
tree | 7a8fe6a99c945d67cc40e990b4e982bcedc87190 | |
parent | 2b1da235a229cfab5898b1c767eaef7c62c74dda (diff) |
Resolve #1
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | layouts/_default/single.html | 9 |
2 files changed, 13 insertions, 0 deletions
@@ -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 |