From bedd6cc6035c879332659fc9903f6024c939f34b Mon Sep 17 00:00:00 2001 From: zenn Date: Fri, 17 Apr 2026 19:01:13 +0900 Subject: [PATCH] =?UTF-8?q?v1.0.0:=20=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B0=94?= =?UTF-8?q?=20=EB=84=A4=EB=B9=84=EA=B2=8C=EC=9D=B4=EC=85=98=20=EB=9D=BC?= =?UTF-8?q?=EB=B2=A8=20=EC=84=A4=EC=A0=95=EA=B3=BC=20=EC=B5=9C=EC=8B=A0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- docs/spec.md | 2 +- docs/update.md | 2 ++ package.json | 8 ++++++++ page.hbs | 2 +- partials/site/sidebar-left.hbs | 6 ++++-- partials/site/topbar.hbs | 6 +++--- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/docs/spec.md b/docs/spec.md index b87b6a8..ce18f0d 100644 --- a/docs/spec.md +++ b/docs/spec.md @@ -19,7 +19,7 @@ - 데스크톱 `topbar__inner`는 `var(--sidebar-left) minmax(0, var(--content-column)) var(--sidebar-right)` 3열 그리드이며, `1024px` 이상에서만 검색 셀(`.topbar__search`)에 `min-width: min(--topbar-search-min, 100%)`를 적용해 중앙 검색 최소 폭을 완만히 보장함. 검색 트리거는 라벨(`.search-trigger__label`) 말줄임·단축키 `flex-shrink: 0` 유지. 브랜드 텍스트는 말줄임, 로고 이미지는 `max-width: 100%`로 축소 - `1023px` 이하에서는 `topbar__inner`를 `minmax(0, 1fr) auto` 2열로 바꾸고 검색 열을 숨긴 뒤, 브랜드·액션을 각각 1·2열에 배치함(헤더가 3열 정의만 남는 문제 방지) - `home` Hero는 `@site.cover_image`가 있을 때 배경 이미지로 적용하며 오버레이와 텍스트 대비를 함께 조정함 -- 좌측 사이드바 `menu-groups`: Primary는 `Home pages` 아코디언 안에 `{{navigation}}`, Secondary(관리자에 항목이 있을 때만)는 그 아래 `More links` 아코디언 안에 `{{navigation type="secondary"}}`로 동일 마크업(`ul.nav`)을 노출함 +- 좌측 사이드바 `menu-groups`: Primary는 `@site.navigation` 항목이 있을 때만 아코디언과 `{{navigation}}`를 렌더하고, Secondary도 `@site.secondary_navigation`이 있을 때만 아코디언과 `{{navigation type="secondary"}}`를 동일 마크업(`ul.nav`)으로 노출함. 각 라벨은 `@custom.primary_nav_label`, `@custom.secondary_nav_label`(미입력 시 `Primary`/`Secondary` fallback)로 어드민에서 변경 가능함 - 상단 사용자 메뉴는 멤버 로그인 시에만 드롭다운 상단에 이름/아바타 행을 노출하며, 서버 렌더링 값으로 초기 표시한 뒤 `/members/api/member/` 재조회로 실시간 동기화하고 아바타 미등록 시 fallback 문자(이름/이메일 첫 글자)를 사용함. 비로그인 시 해당 행은 렌더하지 않음 - Tailwind CSS 빌드 결과물(`assets/built/tailwind.css`)을 기존 `screen.css`와 함께 로드 - Tailwind 기본 초기화(`preflight`)를 활성화해 브라우저 기본 마진과 폼 스타일을 리셋 diff --git a/docs/update.md b/docs/update.md index bb17540..4deb266 100644 --- a/docs/update.md +++ b/docs/update.md @@ -6,6 +6,8 @@ - `scripts/sync-theme.sh`, `docker-compose.yml`: 로컬 Ghost 테마 동기화 경로를 `zenless-column-flow`로 변경. - `scripts/build-sample-content.js`, `seed/README.md`, `README.md`: 샘플 콘텐츠 파일명/문서 표기를 `zcf-sample-content` 및 새 테마명으로 갱신. - `docs/spec.md`, `docs/map.md`, `docs/deploy.md`, `docs/history.md`: 현재 버전과 테마명/버전 규칙을 `v1.0.0`, `ZCF-v1.x.x` 기준으로 동기화. +- `partials/site/sidebar-left.hbs`: Primary navigation 항목이 없으면 `Home pages` 그룹 자체가 렌더되지 않도록 `{{#if @site.navigation}}` 분기 추가. +- `package.json`, `partials/site/sidebar-left.hbs`: 사이드바 네비게이션 라벨을 `@custom.primary_nav_label`, `@custom.secondary_nav_label`로 어드민에서 입력 가능하도록 확장하고, 미입력 시 `Primary`/`Secondary` fallback을 사용. ## v0.2.11 - 2026-04-17 - `package.json` 버전을 `0.2.11`로 증가. diff --git a/package.json b/package.json index fd173cb..c325954 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,14 @@ "show_admin_link": { "type": "boolean", "default": false + }, + "primary_nav_label": { + "type": "text", + "default": "Primary" + }, + "secondary_nav_label": { + "type": "text", + "default": "Secondary" } } }, diff --git a/page.hbs b/page.hbs index bfbac3a..8c678e2 100644 --- a/page.hbs +++ b/page.hbs @@ -1,7 +1,7 @@ {{!< default}} {{#post}} -
+
{{#match @page.show_title_and_feature_image}}
diff --git a/partials/site/sidebar-left.hbs b/partials/site/sidebar-left.hbs index 4b95792..0fef618 100644 --- a/partials/site/sidebar-left.hbs +++ b/partials/site/sidebar-left.hbs @@ -1,10 +1,11 @@