diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index dda5e178..f0d8e264 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -30,6 +30,7 @@ pygmentsCodefencesGuessSyntax = true socialShare = true delayDisqus = true showRelatedPosts = true +# cusdisID = "XXX" # Get your App id from cusdis.com # hideAuthor = true # gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic" # disclaimerText = "The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way." diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b5718e77..7e4c43d1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -61,7 +61,22 @@

{{ i18n "seeAlso" }}

{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }} - {{ if .Site.DisqusShortname }} + + {{ if .Site.Params.cusdisID }} + +
+ + + {{ end }} + + {{ if .Site.DisqusShortname }} {{ if .Site.Params.delayDisqus }}
diff --git a/static/css/main.css b/static/css/main.css index b485b538..39d502f7 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -153,6 +153,10 @@ figure:not(.dark) img, img.white { } } +#cusdis_thread { + margin-top: 30px; +} + /* --- Navbar --- */ .navbar-custom {