Commit 120f0b21 authored by Yurizal Susanto's avatar Yurizal Susanto

Add utterances support

So, we have alternative of disqus now!
parent 0c314fde
......@@ -30,6 +30,7 @@ Like I said, it's really minimal. Its doesn't even have grid or anything nice li
- Social Icon Links.
- No Grid no worry.
- Disqus Support.
- [Utterances](https://utteranc.es) Support.
- Translatable.
![Manis' Homepage view](https://raw.githubusercontent.com/yursan9/manis-hugo-theme/master/images/blue-red.png)
......
......@@ -37,8 +37,6 @@ pygmentsUseClasses = true
# Custom CSS
customCSS = []
# List of sections that support disqus comments
disqusSections = [ "blog" ]
# Site meta description
description = "Sweet little Hugo's theme for personal website or blog."
# Site's Tagline (Subtitle or Keyword)
......@@ -52,6 +50,16 @@ pygmentsUseClasses = true
mainSections = ["blog", "post"]
# Configure which sections for Latest Works
workSections = ["work"]
# List of sections that support disqus comments
disqusSections = [ "blog" ]
# List of sections that support utterances comments
utterancesSections = [ "blog" ]
# Utterances Configuration
utterancesRepo = ""
utterancesTheme = "github-light"
utterancesLabel = ""
# 404 Configuration
head404 = "Sorry, I can't find what you want."
......
......@@ -18,6 +18,9 @@
{{ end }}
</nav>
{{ partial "related" . }}
{{ if in .Site.Params.UtterancesSections .Section}}
{{ partial "utterances" .}}
{{ end }}
{{ if in .Site.Params.DisqusSections .Section }}
{{ partial "disqus" . }}
{{ end }}
......
{{ theme := .Site.Params.UtterancesTheme | default "github-light" }}
{{ label := .Site.Params.UtterancesLabel | default "" }}
<script src="https://utteranc.es/client.js"
repo="{{- .Site.Params.UtterancesRepo -}}"
issue-term="url"
label="{{ $label }}"
theme="{{ $theme }}"
crossorigin="anonymous"
async>
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment