aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base-jinja/templates/comments_helper_utterances.tmpl
blob: e1c03c2f0896ce1a5343965a67cfad1a1adfe06a (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
{#  -*- coding: utf-8 -*- #}
{% macro comment_form(url, title, identifier) %}
    {% if comment_system_id %}
        <div data-title="{{ title|e }}" id="utterances-thread"></div>
        <script src="https://utteranc.es/client.js" repo="{{ comment_system_id }}"
        {% if utterances_config %}
        {% for k, v in utterances_config.items() %}
        {{ k }}="{{ v }}"
        {% endfor %}
        {% endif %}
        ></script>
    {% endif %}
{% endmacro %}

{% macro comment_link(link, identifier) %}
    {% if comment_system_id %}
        <a href="{{ link }}#utterances-thread">{{ messages("Comments") }}</a>
    {% endif %}
{% endmacro %}


{% macro comment_link_script() %}
{% endmacro %}