aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/comments_helper_isso.tmpl
blob: c733bbeb312c2c00859330abd3c00e59226344c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## -*- coding: utf-8 -*-
<%def name="comment_form(url, title, identifier)">
    %if comment_system_id:
        <div data-title="${title|h}" id="isso-thread"></div>
        <script src="${comment_system_id}js/embed.min.js" data-isso="${comment_system_id}" data-isso-lang="${lang}"
        % if isso_config:
        % for k, v in isso_config.items():
        data-isso-${k}="${v}"
        % endfor
        % endif
        ></script>
    %endif
</%def>

<%def name="comment_link(link, identifier)">
    %if comment_system_id:
        <a href="${link}#isso-thread">${messages("Comments")}</a>
    %endif
</%def>


<%def name="comment_link_script()">
    %if comment_system_id and 'index' in pagekind:
        <script src="${comment_system_id}js/count.min.js" data-isso="${comment_system_id}" data-isso-lang="${lang}"></script>
    %endif
</%def>