updates - ui

This commit is contained in:
SG
2025-06-11 23:09:14 +03:00
parent 3efc5e2390
commit acfa45295b
3 changed files with 10 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ class ContentItem:
self.title = self.data.get("title", self.slug)
self.omit_second_title = self.data.get("omit_second_title", False)
self.date = self.data.get("date", "2000-01-01T00:00:00+03:00")
self.categories = self.data.get("categories", str([]))
self.categories = [c for c in self.data.get("categories", str([])) if c != 'default']
self.hidden = self.data.get("hidden", str(False))
self.data.content = self.data.content.replace('\n', ' \n')
self.html = markdown.markdown(self.data.content)