Is anyone using "Cusdis" comment system in this theme? I have a blank area #28
-
I used to have Cusdis as my comment system in another hugo theme, so there is nothing wrong with the Cusdis configuration. But when I try to embed Cusdis code in blowfish(as the doc, create It supposed to be look like this: but when I embed the same code to looking forward to the solution. 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@miawithcode sorry haven't tried it. I can have a look when you have time if you have the code available in a repo. share the URL if you want to |
Beta Was this translation helpful? Give feedback.
-
Found a solution @miawithcode Changed your file a little bit to import the js from cusdis in a "safer" way. The problem was a clash between that code and the theme core js files. Opened a PR to the file you shared so that you can see the changes in detail. <h3>Comment</h3>
<div id="cusdis_thread"
data-host="https://cusdis.com"
data-app-id="34a5cbd9-4203-4b8f-b555-742871da8c60"
data-page-id="{{ .File.UniqueID }}"
data-page-url="{{ .RelPermalink }}"
data-page-title="{{ .Title }}"
></div>
{{- $js := resources.GetRemote "https://cusdis.com/js/cusdis.es.js" | js.Build (dict "minify" true) -}}
<script type='text/javascript'>
{{ $js.Content | safeJS }}
</script> |
Beta Was this translation helpful? Give feedback.
Found a solution @miawithcode
Changed your file a little bit to import the js from cusdis in a "safer" way. The problem was a clash between that code and the theme core js files. Opened a PR to the file you shared so that you can see the changes in detail.