mirror of
https://github.com/RealOrangeOne/RealOrangeOne.git
synced 2024-11-23 08:49:30 +00:00
Print the new README
This commit is contained in:
parent
f9400b8b05
commit
343686f515
1 changed files with 6 additions and 2 deletions
8
build.py
8
build.py
|
@ -19,9 +19,13 @@ def get_posts() -> list[dict]:
|
|||
def main():
|
||||
template = jinja2.Template(TEMPLATE_FILE.read_text())
|
||||
|
||||
OUTPUT_FILE.write_text(template.render(
|
||||
new_readme = template.render(
|
||||
latest_posts=get_posts()
|
||||
))
|
||||
)
|
||||
|
||||
print(new_readme)
|
||||
|
||||
OUTPUT_FILE.write_text(new_readme)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue