More code for micro

This commit is contained in:
Fundor333
2025-01-18 01:05:10 +01:00
parent 866723ba70
commit 2fe508b782
2 changed files with 3 additions and 6 deletions

View File

@@ -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."
fediverseAccount: "@fundor333@mastodon.social"
hcard:
Hcard:
avatar: "img/logo.png"
fullName: Fundor333
pronouns:

View File

@@ -30,11 +30,8 @@ def micro_fc():
name = input("Give me the title\n")
year = str(datetime.datetime.now().year)
month = str(datetime.datetime.now().month)
day = str(datetime.datetime.now().day)
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)
generated = f"{year.ljust(4,"0")}/{month.ljust(2,"0")}/{name.replace(' ', '-').replace(',', '').lower()}"
os.system(f"hugo new micro/{generated}.md")
print(f"Generated {generated}.md")