sphinx_nervproject_theme/sphinx_nervproject_theme/util/isso.html

26 lines
1.4 KiB
HTML

{% if theme_isso %}
<script data-isso="/isso"
data-isso-id="{{ ablog.page_url(pagename) }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
data-isso-css="false"
data-isso-lang="{{ theme_isso['lang'] }}"
data-isso-reply-to-self="{{ theme_isso['reply_to_self'] }}"
data-isso-require-author="{{ theme_isso['require_author'] }}"
data-isso-require-email="{{ theme_isso['require_email'] }}"
data-isso-reply-notifications="{{ theme_isso['reply_notif'] }}"
data-isso-max-comments-top="{{ theme_isso['max_comments_top'] }}"
data-isso-max-comments-nested="{{ theme_isso['max_comments_nested'] }}"
data-isso-reveal-on-click="{{ theme_isso['reveal_on_click'] }}"
data-isso-avatar="{{ theme_isso['avatar'] }}"
data-isso-vote="{{ theme_isso['vote'] }}"
data-isso-vote-levels="{{ theme_isso['vote_levels'] }}"
data-isso-feed="{{ theme_isso['feed'] }}"
src="{{ theme_isso['url'] }}/js/embed.min.js"></script>
<section class="comments" id="comments">
<h2 class="panel">{{ _("Comments") }}</h2>
<section id="isso-thread"
data-isso-id="{{ ablog.page_url(pagename) }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
data-title="{{ title }}"
></section>
</section>
{% endif %}