Skip to content
Permalink
Browse files

Enable Disqus; single.html template

  • Loading branch information...
Mike Watkins
Mike Watkins committed Apr 9, 2018
1 parent 2852efa commit 12198156875efc187bd73ac5d73c567533e42f05
Showing with 14 additions and 10 deletions.
  1. +8 −8 exampleSite/config.yaml
  2. +6 −2 layouts/_default/single.html
@@ -52,6 +52,11 @@ paginate: 2 # set very low for demo purposes only, 5 - 10 or more would be reas
# Only uncomment if you have a GA UD:
# GoogleAnalytics: # add your UA-nnn-nnnnnnnn ID and uncomment

# Disqus is a popular commenting system; to get an account visit:
# https://disqus.com/admin/create/`
# Uncommenting will result in Disqus capability extended to each blog post.
# disqusShortname: "yourdiscussshortname"

# Code oriented optional features:
# pygments variables tune code syntax highlighting features Hugo provides
pygmentsUseClasses: true
@@ -78,19 +83,14 @@ enableEmoji: false



# Optional Features
# Optional Features ------------------------------------------------------
# Syndication feeds atom.xml and rss.xml ---------------------------------



# Site definable variables used by Hugo-Smorg -----------------------------------
# $.Site.Params variables are user-definable; the Hugo-Smorg theme makes use of
# a number of variables to enable a certain amount of customization without
# a number of variables to enable a certain amount of customization without
# requiring editing of templates. See `docs/customizing.md` for more
# information.
#
# Access in templates via $.Site.Params.somevariablename ------------------------

# Access in templates via $.Site.Params.somevariablename
params:
# debug: true causes template path to be output at top of page, handy for dev
debug: false
@@ -6,10 +6,14 @@
<div class="column is-8 is-offset-2">
<article class="content">
<h1 class="title is-3">{{ .Title }}</h1>
<p class="subtitle is-6 has-text-grey"><em>
{{- partial "page-meta.html" . -}}</em></p>
<p class="subtitle is-6 has-text-grey">
<em>{{- partial "page-meta.html" . -}}</em></p>
{{- partial "page-status.html" . -}}
{{- .Content }}
{{ if $.Site.DisqusShortname }}
<hr>
{{ template "_internal/disqus.html" . }}
{{ end }}

</article>
</div>

0 comments on commit 1219815

Please sign in to comment.
You can’t perform that action at this time.