Browse Source

change date tag to year

Jason 1 year ago
parent
commit
81075ce47b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/gists.py

+ 2 - 1
scripts/gists.py

@@ -34,6 +34,7 @@ def main():
 		title = titles[0].strip(".md")
 		print(f"GIST {gist_id} {title}")
 		shortdate = date.split("T", maxsplit=1)[0]
+		shortdate = date.split("-", maxsplit=1)[0]
 		text = f"""---
 title: "{title}"
 date: {date}
@@ -85,4 +86,4 @@ draft: false
 
 
 if __name__ == '__main__':
-	main()
+	main()