mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 23:07:50 +00:00
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:
@@ -20,8 +20,6 @@
|
||||
<script async src="/js/edition-2/main.js"></script>
|
||||
|
||||
<title>{% block title %}{% endblock title %}</title>
|
||||
|
||||
{% block head %}{% endblock head %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -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 description -%}
|
||||
{{ page.summary | safe | striptags | truncate(length=150) }}
|
||||
@@ -18,6 +17,6 @@
|
||||
<hr>
|
||||
<section>
|
||||
<h2 id="comments">Comments</h2>
|
||||
{{ snippets::giscus() }}
|
||||
{{ snippets::giscus(search_term=page.title ~ " (Extra Post)") }}
|
||||
</section>
|
||||
{% endblock after_main %}
|
||||
|
||||
@@ -4,7 +4,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 header %}
|
||||
{% if lang != "en" -%}
|
||||
@@ -104,7 +103,7 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{{ snippets::giscus() }}
|
||||
{{ snippets::giscus(search_term=page.title) }}
|
||||
</section>
|
||||
|
||||
<aside class="page-aside-right">
|
||||
|
||||
Reference in New Issue
Block a user