Make it possible to set discussion thread manually per post

This commit is contained in:
Philipp Oppermann
2021-06-12 16:52:18 +02:00
parent 47292beaad
commit 963eb3e659
3 changed files with 11 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ date = 2019-04-27
[extra]
chapter = "Bare Bones"
comments_search_term = 1009
+++
This post explores unit and integration testing in `no_std` executables. We will use Rust's support for custom test frameworks to execute test functions inside our kernel. To report the results out of QEMU, we will use different features of QEMU and the `bootimage` tool.

View File

@@ -103,7 +103,12 @@
</p>
{% endif %}
{{ snippets::giscus(search_term=page.title) }}
{% if page.extra.comments_search_term %}
{% set search_term=page.extra.comments_search_term %}
{% else %}
{% set search_term=page.title %}
{% endif %}
{{ snippets::giscus(search_term=search_term) }}
</section>
<aside class="page-aside-right">

View File

@@ -18,7 +18,11 @@
data-repo-id="MDEwOlJlcG9zaXRvcnkzOTU3NTEwMQ=="
data-category="Post Comments"
data-category-id="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDE4OTg1"
{% if search_term is number %}
data-mapping="number"
{% else %}
data-mapping="specific"
{% endif %}
data-term="{{ search_term }}"
data-reactions-enabled="1"
data-theme="preferred_color_scheme"