giscus: Use specific search term instead of og:title

This makes us more flexible and gives us ways to avoid title collisions (e.g. when the title on an extra post is a substring of some post title).
This commit is contained in:
Philipp Oppermann
2021-06-12 16:35:20 +02:00
parent 90c4e2bb93
commit 47292beaad
6 changed files with 7 additions and 18 deletions

View File

@@ -3,7 +3,6 @@
{% 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 main %}
<h1>{{ page.title }}</h1>
@@ -33,7 +32,7 @@
<hr>
<section>
<h2 id="comments">Comments</h2>
{{ snippets::giscus() }}
{{ snippets::giscus(search_term=page.title) }}
</section>
{% endblock after_main %}