feat: 通用采集+模板注入引擎:配置驱动多源采集,Jinja2 模板注入成文档,不绑定单机

This commit is contained in:
NightStar
2026-09-03 16:09:54 +08:00
parent 0097d4e0bc
commit cb0bbf3e58
5 changed files with 502 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
# 📰 早报 · {{ date }}
## 🌍 国际要闻
{% for item in news %}
- **{{ item.source }}**:[{{ item.title }}]({{ item.url }})
{% else %}
- (今日未采集到国际要闻)
{% endfor %}
## 💻 GitHub Trending
{% for r in github %}
- **[{{ r.name }}]({{ r.url }})**{% if r.lang %}({{ r.lang }}){% endif %}:{{ r.desc }}
{% else %}
- (今日未采集到 GitHub Trending)
{% endfor %}
## 🔬 科技动态
{% for t in tech %}
- [{{ t.title }}]({{ t.url }}):{{ t.summary }}
{% else %}
- (今日未采集到科技动态)
{% endfor %}
## 🔥 社会热榜
{% for h in hot %}
- {{ h.rank }}. {{ h.title }}({{ h.platform }})
{% else %}
- (今日未采集到社会热榜)
{% endfor %}
## 📡 RSS 精选
{% for r in rss %}
- [{{ r.title }}]({{ r.url }}){% if r.source %}({{ r.source }}){% endif %}:{{ r.summary }}
{% else %}
- (今日未采集到 RSS 精选)
{% endfor %}