작품 파일명 연-월-제목 + 작품별 이미지 폴더(assets/img/<slug>/)

This commit is contained in:
koreafood committed 2026-10-31 11:18:55 +09:00
1 parent 4dff91b483
commit 767b2a30a3
19 files changed
+163 -40

No files matched your search

+5 -2
View File
@@ -432,9 +432,12 @@ def build_index(
hero_image = str(featured["image"])
hero_width, hero_height = image_size(hero_image)
kit = next((p for p in products if p["slug"] == "kit-first-stitch"), None)
kit_slug = str(site.get("shop", {}).get("kit_slug", "")).strip()
kit = next((p for p in products if p["slug"] == kit_slug), None) if kit_slug else None
if kit is None:
fail("content/products/kit-first-stitch.md 가 필요합니다.")
kit = next((p for p in products if p["slug"].endswith("kit-first-stitch")), None)
if kit is None:
fail("키트로 쓸 작품이 없습니다. content/site.json 의 shop.kit_slug 를 지정하세요.")
kit_image = str(kit["image"])
kit_width, kit_height = image_size(kit_image)
kit_body_html = markdown_to_html(kit["body"])