Skip to content

Commit

Permalink
feat: support self-host cusdis
Browse files Browse the repository at this point in the history
  • Loading branch information
WingLim committed Sep 25, 2021
1 parent d26739c commit a002225
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions layouts/partials/comments/provider/cusdis.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<div id="cusdis_thread" data-host="https://cusdis.com"
data-app-id="{{ .Site.Params.comments.cusdis.id }}"
data-page-id="{{ .File.UniqueID }}"
data-page-url="{{ .Permalink }}"
data-page-title="{{ .Title }}"></div>
<div id="cusdis_thread"
{{ if .Site.Params.comments.cusdis.host }}
data-host="{{ .Site.Params.comments.cusdis.host }}"
{{ else }}
data-host="https://cusdis.com"
{{ end }}
data-app-id="{{ .Site.Params.comments.cusdis.id }}"
data-page-id="{{ .File.UniqueID }}"
data-page-url="{{ .Permalink }}"
data-page-title="{{ .Title }}"></div>
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>

<script>
Expand Down

0 comments on commit a002225

Please sign in to comment.