Added comments powered by utterances

This commit is contained in:
2023-08-24 14:26:20 +03:00
parent dfecd6c7eb
commit d2e7a5403e
8 changed files with 343 additions and 314 deletions
+9
View File
@@ -0,0 +1,9 @@
<div>
<script src="https://utteranc.es/client.js"
repo="andwati/andwati.com"
issue-term="title"
theme="gruvbox-dark"
crossorigin="anonymous"
async>
</script>
</div>
+2
View File
@@ -1,5 +1,6 @@
{% macro paginate() %}
{% if paginator %}
<div>
<ul class="pagination">
{% if paginator.previous %}
<li class="page-item page-prev">
@@ -21,5 +22,6 @@
</li>
{% endif %}
</ul>
</div>
{% endif %}
{% endmacro paginate %}
+2
View File
@@ -29,5 +29,7 @@
{{ page.content | safe }}
</article>
</main>
{% include "comments.html" %}
{% include "footer.html" %}
{% endblock content %}
-5
View File
@@ -7,11 +7,6 @@
<h1>Posts</h1>
</header>
{% for page in paginator.pages %}{{ post_macros::snippet(page=page) }}{% endfor %}
<!--<div class="pagination">
{% if paginator.previous %}<a href="{{ paginator.previous }}" class="page-item previous">Previous</a>{% endif %}
{% if paginator.next %}<a href="{{ paginator.next }}" class="page-item next">Next</a>{% endif %}
</div>
-->
{% if paginator %}{{ paginate_macro::paginate() }}{% endif %}
</main>
{% include "footer.html" %}