mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Switch comments from utterances to giscus
to use GitHub discussions instead of issues for comment threads.
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
<script async src="/js/edition-2/main.js"></script>
|
||||
|
||||
<title>{% block title %}{% endblock title %}</title>
|
||||
|
||||
{% block head %}{% endblock head %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
{% import "snippets.html" as snippets %}
|
||||
|
||||
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
|
||||
{% block head %}<meta property="og:title" content="{{ page.title }}" />{% endblock head %}
|
||||
|
||||
{% block description -%}
|
||||
{{ page.summary | safe | striptags | truncate(length=150) }}
|
||||
@@ -16,7 +17,7 @@
|
||||
{% block after_main %}
|
||||
<hr>
|
||||
<section>
|
||||
<h2>Comments</h2>
|
||||
{{ snippets::utterances() }}
|
||||
<h2 id="comments">Comments</h2>
|
||||
{{ snippets::giscus() }}
|
||||
</section>
|
||||
{% endblock after_main %}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
{% import "snippets.html" as snippets %}
|
||||
|
||||
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
|
||||
{% block head %}<meta property="og:title" content="{{ page.title }}" />{% endblock head %}
|
||||
|
||||
{% block header %}
|
||||
{% if lang != "en" -%}
|
||||
<aside id="all-posts-link"><a href="{{ config.base_url | safe }}/{{ lang }}" title="All Posts">{{ trans(key="all_posts", lang=lang) }}</a></aside>
|
||||
@@ -102,7 +104,7 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{{ snippets::utterances() }}
|
||||
{{ snippets::giscus() }}
|
||||
</section>
|
||||
|
||||
<aside class="page-aside-right">
|
||||
|
||||
Reference in New Issue
Block a user