feat: FAQ/HowTo schema injection and SEO pipeline enhancement
- writer.py: inject_geo_metadata now detects content type (article/listicle/howto/faq/review) and injects appropriate JSON-LD (FAQPage, HowTo, ItemList) - New helpers: _detect_content_type, _extract_faq_pairs, _extract_howto_steps - outline.py: _extract_seo_keywords regex support for CJK - prompt_loader.py: Minor update Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ class Outliner:
|
||||
if m:
|
||||
return m.group(1).strip()[:300]
|
||||
# 回退:取所有 # 标签或关键词模式
|
||||
keywords = re.findall(r'[##](\w{2,6})', research_notes)
|
||||
keywords = re.findall(r'[##]([\u4e00-\u9fff\w]{2,6})', research_notes)
|
||||
if keywords:
|
||||
return "、".join(keywords[:5])
|
||||
return "暂无"
|
||||
|
||||
Reference in New Issue
Block a user