mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Merge pull request #1010 from phil-opp/giscus
Make it possible to set discussion thread manually per post
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user