More code for micro
This commit is contained in:
@@ -46,7 +46,7 @@ author:
|
|||||||
description: "Pythonista, Backend Developer, Photographer, Dev Ops, Ex-Scout, Bookworm and Tea Lover. Sometime you can find me in a GDG, a DataBeers, a Pycon, a Comicon or other similar event. Huge Open Source fan and user I am allways searching something new to do or to study. Huge fan of automation, autodeploy, data sharing and bots. A lot of my personal stuff are here in my blog and some in my Github."
|
description: "Pythonista, Backend Developer, Photographer, Dev Ops, Ex-Scout, Bookworm and Tea Lover. Sometime you can find me in a GDG, a DataBeers, a Pycon, a Comicon or other similar event. Huge Open Source fan and user I am allways searching something new to do or to study. Huge fan of automation, autodeploy, data sharing and bots. A lot of my personal stuff are here in my blog and some in my Github."
|
||||||
fediverseAccount: "@fundor333@mastodon.social"
|
fediverseAccount: "@fundor333@mastodon.social"
|
||||||
|
|
||||||
hcard:
|
Hcard:
|
||||||
avatar: "img/logo.png"
|
avatar: "img/logo.png"
|
||||||
fullName: Fundor333
|
fullName: Fundor333
|
||||||
pronouns:
|
pronouns:
|
||||||
|
|||||||
@@ -30,11 +30,8 @@ def micro_fc():
|
|||||||
name = input("Give me the title\n")
|
name = input("Give me the title\n")
|
||||||
year = str(datetime.datetime.now().year)
|
year = str(datetime.datetime.now().year)
|
||||||
month = str(datetime.datetime.now().month)
|
month = str(datetime.datetime.now().month)
|
||||||
day = str(datetime.datetime.now().day)
|
generated = f"{year.ljust(4,"0")}/{month.ljust(2,"0")}/{name.replace(' ', '-').replace(',', '').lower()}"
|
||||||
hour = str(datetime.datetime.now().hour)
|
|
||||||
minute = str(datetime.datetime.now().minute)
|
|
||||||
generated = f"{year.ljust(4,"0")}{month.ljust(2,"0")}{day.ljust(2,"0")}{hour.ljust(2,"0")}{minute.ljust(2,"0")}-{name.replace(' ', '-').replace(',', '').lower()}"
|
|
||||||
print(generated)
|
|
||||||
os.system(f"hugo new micro/{generated}.md")
|
os.system(f"hugo new micro/{generated}.md")
|
||||||
print(f"Generated {generated}.md")
|
print(f"Generated {generated}.md")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user