new project py

thumb
km0 3 years ago
parent 7bf7245f10
commit 923a52183e

@ -27,7 +27,7 @@ template = input("🏛️ Custom Template: ")
script = input("🧑 Custom JS: ") script = input("🧑 Custom JS: ")
css = input("🤪 Custom CSS: ") css = input("🤪 Custom CSS: ")
project = { metadata = {
'title': title, 'title': title,
'slug': slug, 'slug': slug,
'description': description, 'description': description,
@ -44,6 +44,9 @@ project = {
'css': css 'css': css
} }
project = {k: v for k, v in metadata.items() if v}
print(project)
post = frontmatter.Post('', **project) post = frontmatter.Post('', **project)

@ -27,7 +27,7 @@ template = input("🏛️ Custom Template: ")
script = input("🧑 Custom JS: ") script = input("🧑 Custom JS: ")
css = input("🤪 Custom CSS: ") css = input("🤪 Custom CSS: ")
project = { metadata = {
'title': title, 'title': title,
'slug': slug, 'slug': slug,
'description': description, 'description': description,
@ -44,6 +44,9 @@ project = {
'css': css 'css': css
} }
project = {k: v for k, v in metadata.items() if v}
print(project)
post = frontmatter.Post('', **project) post = frontmatter.Post('', **project)

Loading…
Cancel
Save