redid all the css almost

This commit is contained in:
0x01fe committed 2024-03-14 14:44:33 -05:00
1 parent af956d09d1
commit ec2a6a7a6d
10 files changed
+368 -334

No files matched your search

+25 -25
View File
@@ -1,25 +1,25 @@
import markdown
import datetime
class Post:
category : str
author : str
date : datetime.datetime
body : str
file : str
def __init__(self, file_path):
self.file = file_path
with open(file_path, 'r', encoding='utf-8') as file:
lines = file.readlines()
self.category = lines[1].split(":")[1].strip()
self.author = lines[2].split(":")[1].strip()
date = lines[3].split(":")[1].strip()
self.date = datetime.datetime.strptime(date, "%d-%m-%Y")
self.body = markdown.markdown(''.join(lines[6:]))
import markdown
import datetime
class Post:
category : str
author : str
date : datetime.datetime
body : str
file : str
def __init__(self, file_path):
self.file = file_path
with open(file_path, 'r', encoding='utf-8') as file:
lines = file.readlines()
self.category = lines[1].split(":")[1].strip()
self.author = lines[2].split(":")[1].strip()
date = lines[3].split(":")[1].strip()
self.date = datetime.datetime.strptime(date, "%d-%m-%Y")
self.body = markdown.markdown(''.join(lines[6:]))