updates
This commit is contained in:
@@ -116,7 +116,6 @@ class Site:
|
|||||||
def map_categories(self):
|
def map_categories(self):
|
||||||
for content_item in self.content_items:
|
for content_item in self.content_items:
|
||||||
for category in content_item.data.get("categories"):
|
for category in content_item.data.get("categories"):
|
||||||
print(f"!!!!!!! {category}")
|
|
||||||
if not category == "default":
|
if not category == "default":
|
||||||
self.categories[category].append(content_item.slug)
|
self.categories[category].append(content_item.slug)
|
||||||
|
|
||||||
@@ -160,7 +159,6 @@ class Site:
|
|||||||
# Render the categories indices
|
# Render the categories indices
|
||||||
visible_content_items = [c for c in self.content_items if c.data.get("hidden") != True]
|
visible_content_items = [c for c in self.content_items if c.data.get("hidden") != True]
|
||||||
for category in self.categories:
|
for category in self.categories:
|
||||||
print(F"CREATING CATEGORY {category}.html")
|
|
||||||
category_index = Path(f"{self.output_dir}/categories/{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")]
|
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:
|
with (category_index).open(mode="w", encoding="utf-8") as f:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
# Main config section
|
# Main config section
|
||||||
class Config:
|
class Config:
|
||||||
MAIN_PAGE_TITLE = "hydrogen site"
|
MAIN_PAGE_TITLE = "microgen library"
|
||||||
|
|
||||||
APP_NAME = "hydrogen"
|
APP_NAME = "hydrogen"
|
||||||
APP_DESCRIPTION = "Simplistic static site generator"
|
APP_DESCRIPTION = "Simplistic static site generator"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
background: rgb(70, 70, 124);
|
background: rgb(70, 70, 124);
|
||||||
background-image: url("/public/static/header.jpg");
|
background-image: url("{{ parent_path }}static/header.jpg");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -66,6 +66,7 @@
|
|||||||
</style>
|
</style>
|
||||||
{% block head_includes %}
|
{% block head_includes %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="top_header">
|
<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/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>
|
<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 id="footer"class="container-fluid">
|
||||||
<div class="row">
|
<div id="footer-data" class="row">
|
||||||
{% block footer_includes %}
|
{% block footer_includes %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<script defer>
|
<script defer>
|
||||||
document.getElementById("categories_toggle").onclick = function() {
|
document.getElementById("categories_toggle").onclick = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user