added script path detection
prepare for PyInstaller
This commit is contained in:
@@ -102,6 +102,8 @@ class Site:
|
||||
with open(self.templates_dir / f"{template_name}.html", "w", encoding="utf8") as f:
|
||||
f.write(template_content)
|
||||
# Create static/about.md
|
||||
about_item = ContentItem(filename = Path('static/about.md'))
|
||||
about_item.create_content()
|
||||
|
||||
def get_content_items(self):
|
||||
logger.debug("Getting content items")
|
||||
|
||||
Reference in New Issue
Block a user