mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
Update new_post.py
This commit is contained in:
parent
d4e57808c6
commit
f8544e3911
@ -48,6 +48,7 @@ if Path(assets_dir).exists() \
|
||||
|
||||
git_branch = questionary.text("Branch: ", default=f"post/{id_from_title}").ask()
|
||||
|
||||
newline = "\n"
|
||||
draft = f"""---
|
||||
title: {answers['title']}
|
||||
layout: post
|
||||
@ -60,7 +61,7 @@ social_image: /{assets_dir}/thumbnail.png
|
||||
alt:
|
||||
image_class: invertable
|
||||
|
||||
{'\n'.join(f'{k}: true' for k in answers['libraries'])}
|
||||
{newline.join(f'{k}: true' for k in answers['libraries'])}
|
||||
---
|
||||
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user