www.git

www

~ Personal site — projects, posts, about. Built with sqzass.
git clone https://github.com/debuman/www.git
commit 1d31969a52cd2c0a49990857a1566c2ed3c57a13
parent 37e3f907fb08dd61accae44aacc2bb987b00d2d3
Author: sqzer <110329244+sqzer-x@users.noreply.github.com>
Date: Tue, 4 Aug 2026 20:21:31 +0900

The language switch belongs to a document, not to a page

Off the home page and off both listing pages. It stays on posts, project
pages and About — the places where there is a piece of writing with a
counterpart to go to.

The distinction is the whole reason it left the masthead. On a document, "KO"
means go to the other edition of this thing you are reading. On a listing or
the home page there is nothing being read, so the same two letters read as a
site-wide setting again, which is what the masthead switch was and what was
wrong with it.

The home hero goes back to the spacing it had before, since the row that was
crowding it is gone.

Diffstat:
Mstatic/css/main.css | 7+------
Mstatic/fonts/display-kr.woff2 | 0binary
Mtemplates/home.html | 6------
Mtemplates/partials/lang.html | 4++++
Mtemplates/posts.html | 2--
Mtemplates/projects.html | 2--
6 files changed, 5 insertion(+), 16 deletion(-)

diff --git a/static/css/main.css b/static/css/main.css
@@ -472,14 +472,9 @@ main { display: block; padding-bottom: clamp(5rem, 12vw, 9rem); }
   max-width: 44ch; color: var(--ink-2); text-wrap: pretty;
 }
 
-/* 첫 화면에서는 언어 줄이 문 위에 선다. 문 뒤에 붙이면 가운데 정렬 스택에서
-   한 줄이 통째로 접힌 자리 아래로 내려간다. 문의 margin-top 이 이 줄에 맞춰
-   깎여 있으므로(clamp(0.85rem…)), 두 값은 함께 고쳐야 한다. */
-.hero-home .page-meta { margin-top: clamp(1.3rem, 3vw, 1.9rem); }
-
 /* 문. 채운 알약이 아니라 밑줄 그은 라벨이다. */
 .door {
-  display: inline-block; margin-top: clamp(0.85rem, 1.8vw, 1.15rem);
+  display: inline-block; margin-top: clamp(1.8rem, 4vw, 2.75rem);
   padding-bottom: 0.35rem;
   font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
   color: var(--ink-2);
diff --git a/static/fonts/display-kr.woff2 b/static/fonts/display-kr.woff2
Binary files differ.
diff --git a/templates/home.html b/templates/home.html
@@ -7,7 +7,6 @@
     카피는 전부 [extra] 에 있고 이 파일은 구조만 안다. #}
 {% extends "base.html" %}
 {% from "partials/ledger.html" import ledger %}
-{% from "partials/lang.html" import lang_switch %}
 
 {% block content %}
 {%- set ko = page.language == "ko" %}
@@ -20,11 +19,6 @@
     {%- if page.extra.hero_sub %}
     <p class="statement-sub" data-rise="2">{{ page.extra.hero_sub }}</p>
     {%- endif %}
-    {#- 홈에도 둔다. 참조 사이트는 홈에서 이걸 빠뜨렸는데, 영어 첫 화면에 도착한
-        사람에게 한국어로 가는 길이 사이트 전체에 하나도 없다는 뜻이 된다.
-        문보다 **앞에** 세우는 이유는 히어로가 가운데 정렬이라서다 — 뒤에 붙이면
-        한 줄만큼이 통째로 접힌 자리 아래로 내려가고, 문까지 같이 밀린다. #}
-    <div class="page-meta" data-rise="3">{{ lang_switch(page) }}</div>
     <a class="door" href="{{ home }}about/" data-rise="3">{{ page.extra.hero_door }}</a>
   </div>
 </section>
diff --git a/templates/partials/lang.html b/templates/partials/lang.html
@@ -13,6 +13,10 @@
     어둡다) 그러면 "어디에 있는지"를 알려고 두 회색을 견줘 봐야 한다. 이 집의
     규칙은 이미 정해져 있다 — 내비의 현재 항목이 눈금과 함께 밝아진다.
 
+    **문서에만** 붙는다. 글 한 편, 프로젝트 한 장, 소개. 홈과 목록에는 안 붙는데,
+    거기서 언어를 바꾸는 것은 문서의 다른 판으로 가는 일이 아니라 사이트 설정을
+    만지는 일처럼 읽히기 때문이다 — 마스트헤드에서 빼낸 이유가 바로 그거였다.
+
     번역이 없는 페이지에서는 통째로 안 나온다. page.translations 가 비면 아무것도
     그리지 않는다. 없는 판으로 가는 링크나 회색 처리된 라벨을 남기지 않는 이유는,
     둘 다 "있는데 지금 못 쓴다"는 뜻이 되기 때문이다. 없는 것은 없다. #}
diff --git a/templates/posts.html b/templates/posts.html
@@ -1,7 +1,6 @@
 {#- 글 목록. 섹션이 `sort_by = "date"` 라 최신순이고, 이제 목록 항목이 자기
     날짜를 실어 오므로 그 순서의 근거가 화면에 보인다. #}
 {% extends "base.html" %}
-{% from "partials/lang.html" import lang_switch %}
 {% from "partials/ledger.html" import ledger %}
 
 {% block content %}
@@ -11,7 +10,6 @@
     {%- if page.description %}
     <p class="page-lede">{{ page.description }}</p>
     {%- endif %}
-    <div class="page-meta">{{ lang_switch(page) }}</div>
   </header>
 
   <div class="fence" aria-hidden="true">+++</div>
diff --git a/templates/projects.html b/templates/projects.html
@@ -9,7 +9,6 @@
 
     스키마는 총체적이다. 없는 값은 "" 나 [] 이고 키를 빼지 않는다. #}
 {% extends "base.html" %}
-{% from "partials/lang.html" import lang_switch %}
 {% from "partials/icons.html" import i_site, i_repo %}
 
 {% block content %}
@@ -19,7 +18,6 @@
     {%- if page.description %}
     <p class="page-lede">{{ page.description }}</p>
     {%- endif %}
-    <div class="page-meta">{{ lang_switch(page) }}</div>
   </header>
 
   <div class="fence" aria-hidden="true">+++</div>