From b61aaa8c9f43766b1934d85c55d1a050c88bee0c Mon Sep 17 00:00:00 2001 From: bits-bytes-nn Date: Thu, 20 Aug 2026 01:33:51 +0900 Subject: [PATCH 1/2] revert(ui): give the language switcher its own band again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I had moved the switcher include into .post-header-info as a fourth meta item — PUBLISHED · READ TIME · CATEGORY · LANGUAGE on one line — on the grounds that a lone right-aligned button in a full-width strip was "aligned against nothing". Rendering both and looking at them says otherwise. The button's right edge lines up exactly with the right edge of the meta card above it and the table-of-contents box below it; those two cards are the alignment, and there is nothing floating about it. Verified at 1200px and at a real 390px viewport. The label was the worse half of that change. "English로 읽기 →" already says what the control does, so a LANGUAGE caption in front of it states the same thing twice. And the row it joined is information the reader reads — a date, a duration, a category — while this is an action the reader takes. Putting them on one line flattened that distinction to save a line of vertical space. Markup and CSS are now byte-identical to what they were before; only the comments differ, and they state the current intent rather than narrating the round trip. --- _includes/language_switcher.html | 15 +++++++-------- _layouts/post.html | 3 ++- _sass/_post.scss | 6 ++++-- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/_includes/language_switcher.html b/_includes/language_switcher.html index 8016fac..062b1ec 100644 --- a/_includes/language_switcher.html +++ b/_includes/language_switcher.html @@ -14,15 +14,14 @@ {% if counterpart %} {% if page.lang == 'ko' %}{% assign other_label = 'English' %}{% else %}{% assign other_label = '한국어' %}{% endif %} {%- comment -%} - Rendered as a meta item inside .post-header-info, next to Published / Read - time / Category. It used to sit in its own band between the meta panel and - the table of contents, right-aligned against nothing — a lone button in an - empty strip, which read as leftover markup rather than a control. + A standalone button between the meta panel and the table of contents, not a + meta item inside .post-header-info. "Read this in English" is an action the + reader takes, unlike the date or category next to it, and it carries its own + label in the link text — so it needs neither a Language: caption nor a + column in that row. {%- endcomment -%} -
- Language - + diff --git a/_layouts/post.html b/_layouts/post.html index 4df7c38..2c0b157 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -33,7 +33,6 @@

{{ page.title }}

{% endfor %}
{% endif %} - {% include language_switcher.html %} {% if page.tags.size > 0 %}
@@ -45,6 +44,8 @@

{{ page.title }}

{% endif %} + {% include language_switcher.html %} +