Add support for commento

This commit is contained in:
Djordje Atlialp 2021-01-14 01:56:23 +01:00
parent 46effd4614
commit 8035db5c05
3 changed files with 16 additions and 0 deletions

View file

@ -34,6 +34,7 @@ This theme was highly inspired by the [hello-friend](https://github.com/panr/hug
- Fully responsive
- Support for social icons
- Support for sharing buttons
- Support for [Commento](https://commento.io)
## How to start

View file

@ -86,6 +86,16 @@ disableHugoGeneratorInject = false
customCSS = []
customJS = []
# Commento is more than just a comments widget you can embed —
# its a return to the roots of the internet.
# An internet without the tracking and invasions of privacy.
# An internet that is simple and lightweight.
# An internet that is focused on interesting discussions, not ads.
# A better internet.
# Uncomment this to enable Commento.
#
# commentoUrl = ""
# Toggle this option need to rebuild SCSS, requires extended version of Hugo
#
justifyContent = false # Set "text-align: justify" to .post-content.

View file

@ -150,5 +150,10 @@
{{ end }}
{{ end }}
{{ if .Site.Params.CommentoUrl }}
<script defer src={{ .Site.Params.CommentoUrl }}></script>
<div id="commento"></div>
{{ end }}
</main>
{{ end }}