diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 584c73e..305b71a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -5,6 +5,8 @@ title = "Hugo Cactus Theme" theme = "hugo-cactus-theme" # Enter your tracking code to enable Google Analytics googleAnalytics = "" +# Disable comments by leaving disqusShortname empty +disqusShortname = "spf13" [params] name = "Mr. Hugo" @@ -12,8 +14,6 @@ googleAnalytics = "" bio = "Blogger - Programmer - Gopher" # Enter optionally your twitter account twitter = "Your Twitter account" - # Disable comments by leaving disqusShortname empty - disqusShortname = "spf13" enableRSS = true # The variables below are optionally too and can be used to diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cc3128b..4f9b1ae 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -25,9 +25,7 @@ - {{ if isset .Site.Params "disqusShortname" }} - {{ partial "disqus.html" . }} - {{ end }} + {{ template "_internal/disqus.html" . }} {{ partial "latest-posts.html" . }} {{ partial "footer.html" . }} diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html deleted file mode 100644 index f37af1c..0000000 --- a/layouts/partials/disqus.html +++ /dev/null @@ -1,14 +0,0 @@ -
-
- - - comments powered by Disqus -
\ No newline at end of file