Skip to content

Commit

Permalink
Merge pull request #280 from djyde/cusdis
Browse files Browse the repository at this point in the history
support cusdis
  • Loading branch information
ahonn committed Apr 24, 2021
2 parents d36d13e + 43f0d2e commit 5b19be5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions layout/_partial/comments.swig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
<div id="gitalk-container"></div>
{%- elif theme.utterances.enable -%}
<div id="utterances-container"></div>
{%- elif theme.cusdis.app_id -%}
<div id="cusdis_thread"
data-host="{{ theme.cusdis.host || 'https://cusdis.com' }}"
data-app-id="{{ theme.cusdis.app_id }}"
data-page-id="{{ page.path }}"
data-page-url="{{ page.permalink }}"
data-page-title="{{ page.title }}"
></div>
{%- endif -%}
</div>
{%- endif -%}
3 changes: 3 additions & 0 deletions layout/_script/_comments/cusdis.swig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{%- if theme.cusdis.enable -%}
<script async src="{{ theme.cusdis.host || 'https://cusdis.com' }}/js/cusdis.es.js"></script>
{%- endif -%}
1 change: 1 addition & 0 deletions layout/_script/comments.swig
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
{%- include "_comments/livere.swig" -%}
{%- include "_comments/gitalk.swig" -%}
{%- include "_comments/utterances.swig" -%}
{%- include "_comments/cusdis.swig" -%}
{%- endif -%}

0 comments on commit 5b19be5

Please sign in to comment.