This commit is contained in:
SG
2025-06-12 01:32:06 +03:00
parent acfa45295b
commit 141060368c
3 changed files with 8 additions and 7 deletions

View File

@@ -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:

View File

@@ -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"

View File

@@ -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 @@
</style>
{% block head_includes %}
{% endblock %}
</head>
<body>
<div class="top_header">
@@ -92,12 +93,14 @@
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2" crossorigin="anonymous"></script>
<div class="container-fluid">
<div class="row">
<div id="footer"class="container-fluid">
<div id="footer-data" class="row">
{% block footer_includes %}
{% endblock %}
</div>
<div class="row small text-muted justify-content-end"><p class="mx-4">Page created with <a href="">microgen</a></p></div>
<div class="row small text-muted justify-content-end">
<p class="mx-4">Page created with <a href="#">microgen</a></p>
</div>
</div>
<script defer>
document.getElementById("categories_toggle").onclick = function() {