fix: 목차 완전 제거, Wikipedia 이미지 fallback 추가
1. publisher_bot.py + blog_converter.py: 목차(TOC) 완전 비활성화 2. fetch_featured_image(): Wikipedia REST API로 무료 이미지 fallback - 제목/태그로 한국어 Wikipedia 검색 → 썸네일 추출 - 실패 시 영문 Wikipedia 시도 (최대 4개 키워드) - 200px 썸네일 → 800px 고해상도로 교체 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -96,8 +96,7 @@ def build_full_html(article: dict, body_html: str, toc_html: str,
|
||||
json_ld = build_json_ld(article, post_url)
|
||||
disclaimer = article.get('disclaimer', '')
|
||||
parts = [json_ld]
|
||||
if toc_html:
|
||||
parts.append(f'<div class="toc-wrapper">{toc_html}</div>')
|
||||
# 목차 비활성화 — 독자 경험 개선
|
||||
parts.append(body_html)
|
||||
if disclaimer:
|
||||
parts.append(f'<hr/><p class="disclaimer"><small>{disclaimer}</small></p>')
|
||||
|
||||
Reference in New Issue
Block a user