Skip to content

Commit 1306405

Browse files
committed
Update
1 parent 4bf229f commit 1306405

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def process(article):
1818
template = env.get_template('generate.md')
1919
prompt = template.render(
2020
title=article['title'],
21+
url=article['url'],
2122
article=project.read(article['path']),
2223
headings=article['headings'],
2324
date=datetime.now().strftime("%Y-%m-%d %H:%M:%S"),

templates/template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ authors:
1717
<!-- more -->
1818

1919
这里是正文,在这里开始你的文章书写,注意上面的格式严格按照要求来,HTML 注释也不要删掉,请你仔细注意格式!
20+
21+
你需要在文章的最后,以及其他你认为合适的地方,将文章原文的链接 {{ url }} 放上(适量即可,如果你生成的文章很长那么可以多加一些),以便读者连接到原文、全文,同时起到更好的推广和宣传作用。

0 commit comments

Comments
 (0)