Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
comments and config update (#217)
Browse files Browse the repository at this point in the history
update features and tags
  • Loading branch information
FooBartn authored Mar 9, 2021
1 parent ef1cf98 commit 35c1b58
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ disableLanguages = []
rssFooter = true
socialFooter = true

[params.utterances]
enabled = false
repo = ""
issueTerm = "pathname"
issueNumber = ""
label = ""
theme = "github-light"

[params.staticman]
enabled = true
api = "" # No Trailing Slash
Expand Down
11 changes: 11 additions & 0 deletions layouts/_default/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
{{ template "_internal/disqus.html" . }}
</article>

{{ else if .Site.Params.utterances.enabled }}
<script src="https://utteranc.es/client.js"
repo="{{ .Site.Params.utterances.repo }}"
issue-term="{{ .Site.Params.utterances.issueTerm }}"
issue-number="{{ .Site.Params.utterances.issueNumber }}"
label="{{ .Site.Params.utterances.label }}"
theme="{{ .Site.Params.utterances.theme }}"
crossorigin="anonymous"
async>
</script>

{{/* Backwards compatibility for deprecated parameter ".Site.Params.staticman.staticman" */}}
{{ else if or .Site.Params.staticman.enabled .Site.Params.staticman.staticman }}
<article class="post">
Expand Down
4 changes: 2 additions & 2 deletions theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ tags = ["Academic", "Academicons", "Blog", "Contact Form", "CSS Grid", "Disqus",
"Fancybox", "Font Awesome", "Gallery", "Google Analytics", "Google News",
"Highlight.js", "Jquery", "Lunr.js", "Multilingual", "Netlify",
"Responsive", "Search", "Open Graph", "Staticman", "Syntax Highlighting",
"Twitter Cards"]
"Twitter Cards", "Utteranc.es"]
features = ["Academicons v1.8.6", "Disqus", "Fancybox v3.5.7", "Font Awesome v5.13.0",
"Google Analytics", "Google News", "Highlight.js v10.0.3", "Jquery v3.5.1",
"Lunr.js v2.3.8", "Netlify", "Open Graph", "Staticman", "Theme Update Notification",
"Twitter Cards"]
"Twitter Cards", "Utteranc.es"]
min_version = "v0.62.0/extended"

[author]
Expand Down

0 comments on commit 35c1b58

Please sign in to comment.