diff --git a/content/test-section/_index.md b/content/test-section/_index.md new file mode 100644 index 0000000..9682cab --- /dev/null +++ b/content/test-section/_index.md @@ -0,0 +1,5 @@ ++++ +title = "Test section" + +description = "Test" ++++ \ No newline at end of file diff --git a/content/test-section/sub-section/_index.md b/content/test-section/sub-section/_index.md new file mode 100644 index 0000000..a441445 --- /dev/null +++ b/content/test-section/sub-section/_index.md @@ -0,0 +1,6 @@ ++++ +title = "Sub Section" + +[extra] +zulma_title = "Hero title" ++++ \ No newline at end of file diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..31446ab --- /dev/null +++ b/templates/section.html @@ -0,0 +1,36 @@ +{% extends "index.html" %} +{% import "post_macros.html" as post_macros %} +{% import "index_macros.html" as index_macros %} + +{% block content %} + +{% block header %} +{{ super() }} +{% endblock header %} + +
+ + {% if section.extra.zulma_title %} + {{ index_macros::hero(title=section.extra.zulma_title, primary=true) }} + {% endif %} + +
+
+
+ + {% if paginator %} + {{ index_macros::list_articles(pages=paginator.pages) }} + {% else %} + {{ index_macros::list_articles(pages=section.pages) }} + {% endif %} + + + {% if paginator %} + {{ index_macros::paginate(paginator=paginator) }} + {% endif %} + +
+
+
+
+{% endblock content %} \ No newline at end of file