Compare commits

..

9 Commits

Author SHA1 Message Date
Philipp Oppermann
1662aaaea7 Merge pull request #1120 from JOE1994/korean_translation_recognition
Add @Quqqu to Korean translators' list: post 1 & 2
2022-06-09 09:26:27 +02:00
JOE1994
1f27d18427 Add @Quqqu to Korean translators' list: post 1 & 2
@Quqqu helped with reviewing Korean translation drafts for
post-01 & post-02.
2022-06-08 20:29:02 -04:00
Philipp Oppermann
3c3a37a48c Merge pull request #1118 from phil-opp/translate-giscus
Translate the giscus comment system
2022-06-07 10:52:15 +02:00
Philipp Oppermann
87794f2240 Translate the giscus comment system 2022-06-07 10:50:35 +02:00
Philipp Oppermann
341e05b843 Merge pull request #1117 from phil-opp/remove-analytics
Remove goatcounter analytics again
2022-06-07 10:35:49 +02:00
Philipp Oppermann
01975be7ac Remove goatcounter analytics again
This commit removes the https://www.goatcounter.com/ script that we were using for basic, privacy-friendly analytics. I don't really need that data, so there is not much value in keeping it.
2022-06-07 10:25:19 +02:00
Philipp Oppermann
eeac9e880c Fix swapped if/else in comment thread selection 2022-06-07 10:14:12 +02:00
Philipp Oppermann
2eb5147675 Merge pull request #1116 from phil-opp/fix-comment-threads
Move comment threads for translated posts to separate category
2022-06-07 10:08:13 +02:00
Philipp Oppermann
b05c07d21c Move comment threads for translated posts to separate category
Avoids that a search for the post title returns a thread for a translated post.
2022-06-07 10:06:48 +02:00
9 changed files with 18 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ chapter = "Bare Bones"
# Please update this when updating the translation
translation_based_on_commit = "c1af4e31b14e562826029999b9ab1dce86396b93"
# GitHub usernames of the people that translated this post
translators = ["JOE1994"]
translators = ["JOE1994", "Quqqu"]
+++
운영체제 커널을 만드는 첫 단계는 표준 라이브러리(standard library)를 링크하지 않는 Rust 실행파일을 만드는 것입니다.

View File

@@ -9,7 +9,7 @@ chapter = "Bare Bones"
# Please update this when updating the translation
translation_based_on_commit = "c1af4e31b14e562826029999b9ab1dce86396b93"
# GitHub usernames of the people that translated this post
translators = ["JOE1994"]
translators = ["JOE1994", "Quqqu"]
+++
이번 포스트에서는 x86 아키텍처에서 최소한의 기능으로 동작하는 64비트 Rust 커널을 함께 만들 것입니다. 지난 포스트 [Rust로 'Freestanding 실행파일' 만들기][freestanding Rust binary] 에서 작업한 것을 토대로 부팅 가능한 디스크 이미지를 만들고 화면에 데이터를 출력해볼 것입니다.

View File

@@ -39,8 +39,6 @@
</small>
</footer>
</div>
<script data-goatcounter="https://phil-opp.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</body>
</html>

View File

@@ -62,8 +62,6 @@
</small>
</footer>
</div>
<script data-goatcounter="https://phil-opp.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</body>
</html>

View File

@@ -17,6 +17,6 @@
<hr>
<section>
<h2 id="comments">Comments</h2>
{{ snippets::giscus(search_term=page.title ~ " (Extra Post)") }}
{{ snippets::giscus(search_term=page.title ~ " (Extra Post)", lang=page.lang) }}
</section>
{% endblock after_main %}

View File

@@ -118,7 +118,7 @@
{% else %}
{% set search_term=page.title %}
{% endif %}
{{ snippets::giscus(search_term=search_term) }}
{{ snippets::giscus(search_term=search_term, lang=page.lang) }}
{%- if page.lang != "en" %}
<p class="{% if page.extra.rtl %}right-to-left{% endif %}">

View File

@@ -17,7 +17,7 @@
<hr>
<section>
<h2 id="comments">Comments</h2>
{{ snippets::giscus(search_term=page.title ~ " (News Post)") }}
{{ snippets::giscus(search_term=page.title ~ " (News Post)", lang=page.lang) }}
</section>
{% endblock after_main %}

View File

@@ -10,12 +10,20 @@
</p>
{% endmacro support %}
{% macro giscus(search_term) %}
{% macro giscus(search_term, lang) %}
{% if lang != "en" %}
{% set category = "Post Comments (translated)" %}
{% set category_path = "post-comments-translated" %}
{% else %}
{% set category = "Post Comments" %}
{% set category_path = "post-comments" %}
{% endif %}
{% if search_term is number %}
{% set discussion_url = "https://github.com/phil-opp/blog_os/discussions/" ~ search_term %}
{% else %}
{% set search_term_encoded = `"` ~ search_term ~ `"` | urlencode %}
{% set discussion_url = `https://github.com/phil-opp/blog_os/discussions/categories/post-comments?discussions_q=` ~ search_term_encoded %}
{% set discussion_url = `https://github.com/phil-opp/blog_os/discussions/categories/` ~ category_path ~ `?discussions_q=` ~ search_term_encoded %}
{% endif %}
<p class="comment-note">
@@ -27,7 +35,7 @@
<script src="https://giscus.app/client.js"
data-repo="phil-opp/blog_os"
data-repo-id="MDEwOlJlcG9zaXRvcnkzOTU3NTEwMQ=="
data-category="Post Comments"
data-category="{{ category }}"
data-category-id="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDE4OTg1"
{% if search_term is number %}
data-mapping="number"
@@ -38,6 +46,7 @@
data-reactions-enabled="1"
data-emit-metadata="1"
data-theme="preferred_color_scheme"
data-lang="{{ lang }}"
crossorigin="anonymous"
async>
</script>

View File

@@ -32,7 +32,7 @@
<hr>
<section>
<h2 id="comments">Comments</h2>
{{ snippets::giscus(search_term=page.title) }}
{{ snippets::giscus(search_term=page.title, lang=page.lang) }}
</section>
{% endblock after_main %}