Update to zola 0.6.0

This commit is contained in:
Philipp Oppermann
2019-03-26 12:34:36 +01:00
parent 11ae72b2e2
commit 8397cae2be
4 changed files with 8 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
<aside id="toc-aside">
<h2>Table of Contents</h2>
<ol>
{% for h2 in page.toc %}<li>
{% for h2 in toc %}<li>
<a href="#{{h2.id | safe}}">{{ h2.title | safe }}</a>
{% if h2.children %}<ol>
{% for h3 in h2.children %}<li>

View File

@@ -18,11 +18,11 @@
</script>
{% endmacro utterances %}
{% macro toc(page) %}
{% macro toc(toc) %}
<details id = "toc-inline">
<summary><b>Table of Contents</b></summary>
<ul>
{% for h2 in page.toc %}<li>
{% for h2 in toc %}<li>
<a href="#{{h2.id | safe}}">{{ h2.title | safe }}</a>
{% if h2.children %}<ul>
{% for h3 in h2.children %}<li>

View File

@@ -24,7 +24,7 @@
<aside id="toc-aside">
<h2>Table of Contents</h2>
<ol>
{% for h2 in page.toc %}<li>
{% for h2 in toc %}<li>
<a href="#{{h2.id | safe}}">{{ h2.title | safe }}</a>
{% if h2.children %}<ol>
{% for h3 in h2.children %}<li>
@@ -34,7 +34,7 @@
</li>{% endfor %}
</ol>
</aside>
{{ page.content | safe | replace(from="<!-- toc -->", to=macros::toc(page=page))}}
{{ page.content | safe | replace(from="<!-- toc -->", to=macros::toc(toc=toc))}}
<div class="post-footer-support">
<h2>Support Me</h2>