21 lines
1.2 KiB
HTML
21 lines
1.2 KiB
HTML
<!-- Comment -->
|
|
{%- if config.extra.giscus.repo and not config.extra.disable_javascript %}
|
|
<div class="giscus mt-12"></div>
|
|
<script
|
|
src="https://giscus.app/client.js"
|
|
data-repo="{{ config.extra.giscus.repo | escape_xml | safe }}"
|
|
data-repo-id="{{ config.extra.giscus.repo_id | escape_xml | safe }}"
|
|
data-category="{{ config.extra.giscus.category | escape_xml | safe }}"
|
|
data-category-id="{{ config.extra.giscus.category_id | escape_xml | safe }}"
|
|
data-mapping="{{ config.extra.giscus.mapping | default(value=`pathname`) | escape_xml | safe }}"
|
|
data-strict="{{ config.extra.giscus.strict | default(value=`1`) | int }}"
|
|
data-reactions-enabled="{{ config.extra.giscus.reactions_enabled | default(value=`0`) | int }}"
|
|
data-emit-metadata="{{ config.extra.giscus.emit_metadata | default(value=`0`) | int }}"
|
|
data-input-position="{{ config.extra.giscus.input_position | default(value=`top`) | escape_xml | safe }}"
|
|
data-theme="{{ config.extra.giscus.theme | default(value=`light`) | escape_xml | safe }}"
|
|
data-lang="{{ config.extra.giscus.lang | default(value=`en`) | escape_xml | safe }}"
|
|
data-loading="{{ config.extra.giscus.loading | default(value=`lazy`) | escape_xml | safe }}"
|
|
crossorigin="anonymous"
|
|
async
|
|
></script>
|
|
{%- endif %}
|