Skip to content

Is anyone using "Cusdis" comment system in this theme? I have a blank area #28

Answered by nunocoracao
miawithcode asked this question in Q&A
Discussion options

You must be logged in to vote

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>

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@miawithcode
Comment options

Comment options

You must be logged in to vote
1 reply
@miawithcode
Comment options

Answer selected by nunocoracao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants