dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
site/templates/macros/comments.html (1327B)
1{% macro comments() %} {% if config.extra.disqus.enabled or
2config.extra.giscus.enabled %} {% if config.extra.disqus.enabled %}{% set thread
3= "disqus_thread" %}{% else %}{% set thread = "giscus_thread" %}{% endif %}
4<button
5 type="button"
6 class="comments-collapsible js-only"
7 aria-expanded="false"
8 aria-controls="comments-{{ thread }}">
9 Show Comments
10</button>
11<div
12 class="comments"
13 id="comments-{{ thread }}"
14 data-url="{{ page.permalink }}"
15 hidden
16 inert>
17 <div class="comments-content" id="{{ thread }}">
18 {% if config.extra.disqus.enabled %}
19 <script
20 type="text/plain"
21 data-src="https://{{ config.extra.disqus.short_name }}.disqus.com/embed.js"></script>
22 {% else %}
23 <script
24 type="text/plain"
25 data-src="https://giscus.app/client.js"
26 data-repo="{{ config.extra.giscus.repo }}"
27 data-repo-id="{{ config.extra.giscus.repo_id }}"
28 data-category="{{ config.extra.giscus.category }}"
29 data-category-id="{{ config.extra.giscus.category_id }}"
30 data-mapping="pathname"
31 data-reactions-enabled="1"
32 data-emit-metadata="0"
33 data-input-position="top"
34 data-theme="transparent_dark"
35 data-lang="en"
36 crossorigin="anonymous"></script>
37 {% endif %}
38 </div>
39</div>
40{{ js::comments() }} {% endif %} {% endmacro comments %}