diff --git a/content/_index.md b/content/_index.md index 30d1d3a..9cf3041 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,8 +1,7 @@ +++ +title = "hacc infra documentation" page_template = "doc-page.html" -sort_by = "title" -paginate_by = 10 -#insert_anchor_links = "left" +sort_by="title" +++ diff --git a/templates/index.html b/templates/index.html index 22b89a0..8fae414 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,14 +1,23 @@ {% extends "base.html" %} -{% import "post_macros.html" as post_macros %} {% block content %}
- - {% for page in paginator.pages %} + {% for page in section.pages %}

-

{{ page.title }}

+

{{ page.title }}

{% endfor %} - {{ post_macros::paginator_nav(paginator=paginator) }} + + {% for sub in section.subsections %} + {% set subsection = get_section(path=sub) %} +

+

{{ subsection.title }}

+ {% for page in subsection.pages %} +

+

{{ page.title }}

+

+ {% endfor %} +

+ {% endfor %}
{% endblock content %}