mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-09-24 01:33:40 +02:00
add utterances
This commit is contained in:
parent
c620187811
commit
a5b96f006f
9 changed files with 93 additions and 14 deletions
|
@ -108,3 +108,18 @@
|
|||
</span>
|
||||
{% endif -%}
|
||||
{% endmacro tags %}
|
||||
|
||||
{% macro comments(page) %}
|
||||
{%- if config.extra.utterances.enabled and page.relative_path is not starting_with("pages/") %}
|
||||
<div class="comments">
|
||||
<div class="comments__title">
|
||||
<span class="comments__title-h">comments</span>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<script src="https://utteranc.es/client.js" repo="{{ config.extra.utterances.repo }}"
|
||||
issue-term="{{ config.extra.utterances.post_map }}" label="{{ config.extra.utterances.label }}"
|
||||
theme="{{ config.extra.utterances.theme }}" crossorigin="anonymous" async></script>
|
||||
</div>
|
||||
{% endif -%}
|
||||
{% endmacro comments %}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<div class="post">
|
||||
{{ post_macros::header(page=page) }}
|
||||
{{ post_macros::content(page=page, summary=false, show_only_description=false) }}
|
||||
{{ post_macros::comments(page=page) }}
|
||||
{{ post_macros::earlier_later(page=page) }}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue