theme(fix): enable selfhosted commento.io URL
see #873
Signed-off-by: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
| | |
| | | |
| | | ### Add comments |
| | | |
| | | To enable comments, add following to your config file: |
| | | |
| | | * DISQUS: |
| | | |
| | | ```toml |
| | | [services.disqus] |
| | | shortname = 'YOURSHORTNAME' |
| | | ``` |
| | | |
| | | * COMMENTO: |
| | | |
| | | ```toml |
| | | [params] |
| | | commentoEnable = true |
| | | ``` |
| | | [see Wiki > Customization Comments](https://github.com/theNewDynamic/gohugo-theme-ananke/wiki/Customization-Comments) |
| | | |
| | | ### Change the hero background |
| | | |
| | |
| | | {{ $url := site.Params.commentoPath | compare.Default "https://cdn.commento.io/js/commento.js" }} |
| | | <div id="commento"></div> |
| | | <script defer src="https://cdn.commento.io/js/commento.js"></script> |
| | | <script defer src="{{- $url -}}"></script> |