Skip to content

Commit

Permalink
fix StrapiBlog variables
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-jn committed Apr 3, 2024
1 parent 248fef7 commit 46ac242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ def __init__(self, type, name, path, has_blogs=False, children=None):
self.path = path
self.has_blogs = has_blogs
self.children = []
self.publishedAt = None
self.slug_url = None

if children:
self.add_children(children)
Expand Down Expand Up @@ -59,6 +57,8 @@ def __init__(self, content, filepath, last_updated):
self.content = content
self.filepath = filepath
self.last_updated = last_updated
self.publishedAt = None
self.slug_url = None

def get_title(self) -> str:
return os.path.basename(self.filepath).replace('-', ' ').replace('_', ' ').replace('.md', '')
Expand Down

0 comments on commit 46ac242

Please sign in to comment.