aboutsummaryrefslogtreecommitdiff
path: root/templates/documentation.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/documentation.html')
-rw-r--r--templates/documentation.html11
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/documentation.html b/templates/documentation.html
index 55a5c61..154df5f 100644
--- a/templates/documentation.html
+++ b/templates/documentation.html
@@ -1,11 +1,13 @@
{% extends 'base.html' %}
{% block title %}
- {{ config.title }} | {{ page.title }}
+ {{ config.title }} | {% if page %}{{ page.title }}{% else %}{{ section.title }}{% endif %}
{% endblock %}
{% block content %}
- {% set section = get_section(path="documentation/_index.md") %}
+ {% if not page %}
+ {% set page = section %}
+ {% endif %}
<section id="documentation-section" class="section overflow-x-hidden">
<div class="grid grid-cols-1 xl:grid-cols-5">
{% include "partials/doc/global_toc.html" %}
@@ -45,7 +47,10 @@
{% endblock %}
{% block custom_js %}
+ {% if not page %}
+ {% set page = section %}
+ {% endif %}
{% if page.toc %}
{% include "partials/doc/toc_script.html" %}
{% endif %}
-{% endblock %} \ No newline at end of file
+{% endblock %}