From 72e1926d8753f701afdacc68f8e6b9a08a483e72 Mon Sep 17 00:00:00 2001 From: koreafood Date: Sun, 1 Nov 2026 18:59:33 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B9=B4=ED=86=A1=20=EC=B1=84=EB=84=90=20?= =?UTF-8?q?=EC=97=B0=EA=B2=B0=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=C2=B7canonical=20=EC=B6=94=EA=B0=80=C2=B7=EB=AA=A8=EB=B0=94?= =?UTF-8?q?=EC=9D=BC=20=EB=82=B4=EB=B9=84=20=ED=84=B0=EC=B9=98=20=EC=98=81?= =?UTF-8?q?=EC=97=AD=20=ED=99=95=EB=8C=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - templates/index.html: 인라인 스크립트 문자열에 실제 개행이 들어가 문법 오류 → 카톡 문의 버튼이 동작하지 않던 문제 (배열 join으로 교체) - content/site.json: 카톡 채널 주소 추가 - templates/base.html: canonical 태그, 헤더 앵커를 같은 페이지에서는 #앵커로 (불필요한 재로딩 제거) - assets/css/site.css: 모바일 내비 터치 영역 45px (음수 마진으로 글자 위치 유지) --- assets/css/site.css | 11 +++++++++-- build.py | 2 ++ content/site.json | 2 +- templates/base.html | 9 +++++---- templates/index.html | 15 +++++++-------- 5 files changed, 24 insertions(+), 15 deletions(-) diff --git a/assets/css/site.css b/assets/css/site.css index 98b97ac..a020a24 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -1188,10 +1188,17 @@ strong { } .nav { - gap: 18px; + gap: 0; font-size: 12px; } + /* 터치 영역 44px 확보 — 음수 마진으로 글자 위치는 그대로 둔다 */ + .nav a { + display: inline-block; + padding: 12px 11px; + margin-block: -12px; + } + .wordmark-en { display: none; } @@ -1283,7 +1290,7 @@ strong { } .nav { - gap: 14px; + gap: 0; } .wordmark-ko { diff --git a/build.py b/build.py index b06abdc..3fa5062 100644 --- a/build.py +++ b/build.py @@ -470,6 +470,7 @@ def build_index( "og_title": esc(title), "og_description": esc(intro), "og_image": esc(absolute_url(hero_image)), + "canonical": SITE_BASE, "og_type": "website", "body_class": "is-home", "intro": esc(intro), @@ -589,6 +590,7 @@ def build_product_page( "og_title": esc(title), "og_description": esc(description), "og_image": esc(absolute_url(image)), + "canonical": absolute_url("p/" + product["slug"] + ".html"), "og_type": "product", "body_class": "is-product", "slug": esc(product["slug"]), diff --git a/content/site.json b/content/site.json index 5148e51..219d51d 100644 --- a/content/site.json +++ b/content/site.json @@ -9,7 +9,7 @@ "contact": { "email": "hello@hanttam.kr", "instagram": "", - "kakao": "" + "kakao": "https://pf.kakao.com/_VsLWX/friend" }, "shop": { "kit_slug": "2026-10-kit-first-stitch", diff --git a/templates/base.html b/templates/base.html index 9821951..72cf03c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,6 +9,7 @@ + @@ -26,10 +27,10 @@ {{brand_name_en}} diff --git a/templates/index.html b/templates/index.html index f24c79b..f2e31d6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -84,14 +84,13 @@ (function () { var KAKAO = "{{kakao_url}}"; var TEMPLATE = function (title) { - return title + " 재제작 문의드립니다. - -" - + "- 원하는 시기: -" - + "- 크기·색상: -" - + "- 문의 내용: "; + return [ + title + " 재제작 문의드립니다.", + "", + "- 원하는 시기: ", + "- 크기·색상: ", + "- 문의 내용: " + ].join("\n"); }; document.querySelectorAll("[data-inquiry]").forEach(function (btn) { btn.addEventListener("click", function () {