diff --git a/templates/docs.html b/templates/docs.html index af48475..3239532 100644 --- a/templates/docs.html +++ b/templates/docs.html @@ -22,25 +22,6 @@ {%- endfor -%} #} -{% include "partials/subprojects.html" %} +{% include "partials/docs_toc.html" %} -{%- if paginator.pages -%} - -{%- endif -%} {% endblock content %} diff --git a/templates/documentation_page.html b/templates/documentation_page.html index 0979621..e8af1a4 100644 --- a/templates/documentation_page.html +++ b/templates/documentation_page.html @@ -9,6 +9,8 @@ {%- set list_element = "ul" -%} {%- endif -%} +{%- set section = get_section(path=page.ancestors | last) -%} +
{%- if page.extra.banner -%}
diff --git a/templates/partials/docs_toc.html b/templates/partials/docs_toc.html new file mode 100644 index 0000000..ca3d0a7 --- /dev/null +++ b/templates/partials/docs_toc.html @@ -0,0 +1,7 @@ +
+ {%- for page in section.pages %} +
  • + {{ page.title }} +
  • + {%- endfor %} +