diff options
| author | Jieiku | 2022-05-30 22:33:42 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-30 22:33:42 -0700 |
| commit | 9c1f02f9099b0da48c0bec7f23fa8c0566a331f3 (patch) | |
| tree | 477e96531357223345fef18fb96383e40ddea7c5 /templates/page.html | |
| parent | a5a2e0ae482a5168781b4abf952885531bdc93cc (diff) | |
| download | abridge-9c1f02f9099b0da48c0bec7f23fa8c0566a331f3.tar.gz abridge-9c1f02f9099b0da48c0bec7f23fa8c0566a331f3.tar.bz2 abridge-9c1f02f9099b0da48c0bec7f23fa8c0566a331f3.zip | |
Whitespace Cleanup, Fix Recent
Diffstat (limited to 'templates/page.html')
| -rw-r--r-- | templates/page.html | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/templates/page.html b/templates/page.html index e3388c0..f92574e 100644 --- a/templates/page.html +++ b/templates/page.html @@ -2,39 +2,39 @@ {% import "macros/macros.html" as macros %} {{config.title}} - {{page.title}} {% block content %} -<article> - {{ macros::title(page=page) }} - {{ page.content | safe }} - {% block page_before_footer %} - {% endblock page_before_footer %} - {% block page_footer %} - {{ macros::footer(page=page) }} - {% endblock page_footer %} - {% block page_after_footer %} - {% endblock page_after_footer %} -</article> -{% block toc %} - {% if page.extra.toc %} - {% set toc = page.toc %} - {% endif %} - {% if toc %} - <div class="toc"> - <div class="toc-sticky"> - <h3>Index</h3> - {% for h in toc %} - <div class="toc-item"> - <a class="subtext" href="{{h.permalink | safe}}">{{ h.title }}</a> + <article> + {{ macros::title(page=page) }} + {{ page.content | safe }} + {% block page_before_footer %} + {% endblock page_before_footer %} + {% block page_footer %} + {{ macros::footer(page=page) }} + {% endblock page_footer %} + {% block page_after_footer %} + {% endblock page_after_footer %} + </article> + {% block toc %} + {% if page.extra.toc %} + {% set toc = page.toc %} + {% endif %} + {% if toc %} + <div class="toc"> + <div class="toc-sticky"> + <h3>Index</h3> + {% for h in toc %} + <div class="toc-item"> + <a class="subtext" href="{{h.permalink | safe}}">{{ h.title }}</a> + </div> + {% if h.children %} + {% for h2 in h.children %} + <div class="toc-item-child"> + <a class="subtext" href="{{h2.permalink | safe}}"><small>- {{ h2.title }}</small></a> + </div> + {% endfor %} + {% endif %} + {% endfor %} + </div> </div> - {% if h.children %} - {% for h2 in h.children %} - <div class="toc-item-child"> - <a class="subtext" href="{{h2.permalink | safe}}"><small>- {{ h2.title }}</small></a> - </div> - {% endfor %} - {% endif %} - {% endfor %} - </div> - </div> - {% endif %} -{% endblock toc %} + {% endif %} + {% endblock toc %} {% endblock content %} |
