diff --git a/templates/categories.html b/templates/categories.html new file mode 100644 index 0000000..720aad4 --- /dev/null +++ b/templates/categories.html @@ -0,0 +1,19 @@ +{% extends "index.html" %} + +{% block content %} + {% block header %} + {{ super() }} + {% endblock header %} + +

Categories

+ + {% if categories %} + + {% endif %} +{% endblock content %} diff --git a/templates/category.html b/templates/category.html new file mode 100644 index 0000000..208e662 --- /dev/null +++ b/templates/category.html @@ -0,0 +1,14 @@ +{% extends "index.html" %} +{% import "post_macros.html" as post_macros %} + +{% block content %} + {% block header %} + {{ super() }} + {% endblock header %} + +

{{ category.name }}

+ + {% for page in category.pages %} + {{ post_macros::page_in_list(page=page) }} + {% endfor %} +{% endblock content %} diff --git a/templates/index.html b/templates/index.html index 392073d..6ff4604 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,19 +25,21 @@ {% block content %} - {% if config.extra.after_dark_menu %} -
- -
- {% endif %} + {% block header %} + {% if config.extra.after_dark_menu %} +
+ +
+ {% endif %} + {% endblock header %}
{% if config.extra.after_dark_title %} @@ -46,20 +48,7 @@ {% endif %} {% for page in paginator.pages %} -
-
-

- {{ page.title }} -

- {{ post_macros::meta(page=page) }} -
- {% if page.summary %} -
- {{ page.summary | safe }} - -
- {% endif %} -
+ {{ post_macros::page_in_list(page=page) }} {% endfor %}