|
|
@ -147,6 +147,7 @@ class Website: |
|
|
|
|
|
|
|
class Page: |
|
|
|
def __init__(self, metadata, md_content, filename, last_updated): |
|
|
|
|
|
|
|
self.metadata = metadata |
|
|
|
self.content = md_content |
|
|
|
self.filename = filename |
|
|
@ -157,7 +158,7 @@ class Page: |
|
|
|
self.image_src = self.metadata['image'] |
|
|
|
self.tags = self.metadata['tags'] |
|
|
|
self.date = self.metadata['date'] |
|
|
|
self.showcase = self.metadata.get('showcase', []) |
|
|
|
self.showcase = self.metadata.get('showcase', {}) |
|
|
|
self.credits = self.metadata.get('credits', {}) |
|
|
|
self.references = self.metadata.get('references', []) |
|
|
|
self.isDraft = self.metadata['draft'] |
|
|
|