카톡 채널 연결 버그 수정·canonical 추가·모바일 내비 터치 영역 확대
- templates/index.html: 인라인 스크립트 문자열에 실제 개행이 들어가 문법 오류 → 카톡 문의 버튼이 동작하지 않던 문제 (배열 join으로 교체) - content/site.json: 카톡 채널 주소 추가 - templates/base.html: canonical 태그, 헤더 앵커를 같은 페이지에서는 #앵커로 (불필요한 재로딩 제거) - assets/css/site.css: 모바일 내비 터치 영역 45px (음수 마진으로 글자 위치 유지)
This commit is contained in:
1 parent
7aaa488825
commit
72e1926d87
5 files changed
+24
-15
No files matched your search
+9
-2
@@ -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 {
|
||||
|
||||
@@ -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"]),
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
+5
-4
@@ -9,6 +9,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500&family=Noto+Serif+KR:wght@400;600&display=swap" rel="stylesheet">
|
||||
<link rel="canonical" href="{{canonical}}">
|
||||
<link rel="stylesheet" href="{{asset_prefix}}assets/css/site.css">
|
||||
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%23F6F2EA'/%3E%3Cpath d='M9 9l14 14M23 9L9 23' stroke='%236C7A63' stroke-width='2'/%3E%3C/svg%3E">
|
||||
<meta property="og:title" content="{{og_title}}">
|
||||
@@ -26,10 +27,10 @@
|
||||
<span class="wordmark-en">{{brand_name_en}}</span>
|
||||
</a>
|
||||
<nav class="nav" aria-label="주요">
|
||||
<a href="{{home}}index.html#works">작품</a>
|
||||
<a href="{{home}}index.html#process">과정</a>
|
||||
<a href="{{home}}index.html#kit">키트</a>
|
||||
<a href="{{home}}index.html#contact">문의</a>
|
||||
<a href="{{home}}#works">작품</a>
|
||||
<a href="{{home}}#process">과정</a>
|
||||
<a href="{{home}}#kit">키트</a>
|
||||
<a href="{{home}}#contact">문의</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in new issue
Block a user