diff --git a/classes.py b/classes.py index fd7e831..93c7b57 100644 --- a/classes.py +++ b/classes.py @@ -116,7 +116,6 @@ class Site: def map_categories(self): for content_item in self.content_items: for category in content_item.data.get("categories"): - print(f"!!!!!!! {category}") if not category == "default": self.categories[category].append(content_item.slug) @@ -160,7 +159,6 @@ class Site: # Render the categories indices visible_content_items = [c for c in self.content_items if c.data.get("hidden") != True] for category in self.categories: - print(F"CREATING CATEGORY {category}.html") category_index = Path(f"{self.output_dir}/categories/{category}.html") category_items = [i for i in visible_content_items if category in i.data.get("categories")] with (category_index).open(mode="w", encoding="utf-8") as f: diff --git a/config.py b/config.py index 3cd1cea..151f129 100644 --- a/config.py +++ b/config.py @@ -1,7 +1,7 @@ import os # Main config section class Config: - MAIN_PAGE_TITLE = "hydrogen site" + MAIN_PAGE_TITLE = "microgen library" APP_NAME = "hydrogen" APP_DESCRIPTION = "Simplistic static site generator" diff --git a/templates/default.html b/templates/default.html index 45b7d97..5f6fff5 100644 --- a/templates/default.html +++ b/templates/default.html @@ -12,7 +12,7 @@ position: relative; height: 250px; background: rgb(70, 70, 124); - background-image: url("/public/static/header.jpg"); + background-image: url("{{ parent_path }}static/header.jpg"); background-size: cover; background-position: center; display: flex; @@ -66,6 +66,7 @@ {% block head_includes %} {% endblock %} +