mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
The global toc was replaced by page.toc in upcoming zola version
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<aside id="toc-aside">
|
<aside id="toc-aside">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<ol>
|
<ol>
|
||||||
{% for h2 in toc %}<li>
|
{% for h2 in page.toc %}<li>
|
||||||
<a href="#{{h2.id | safe}}">{{ h2.title | safe }}</a>
|
<a href="#{{h2.id | safe}}">{{ h2.title | safe }}</a>
|
||||||
{% if h2.children %}<ol>
|
{% if h2.children %}<ol>
|
||||||
{% for h3 in h2.children %}<li>
|
{% for h3 in h2.children %}<li>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<aside id="toc-aside">
|
<aside id="toc-aside">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<ol>
|
<ol>
|
||||||
{% for h2 in toc %}<li>
|
{% for h2 in page.toc %}<li>
|
||||||
<a href="#{{h2.id | safe}}">{{ h2.title | safe }}</a>
|
<a href="#{{h2.id | safe}}">{{ h2.title | safe }}</a>
|
||||||
{% if h2.children %}<ol>
|
{% if h2.children %}<ol>
|
||||||
{% for h3 in h2.children %}<li>
|
{% for h3 in h2.children %}<li>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ page.content | replace(from="<!-- toc -->", to=macros::toc(toc=toc)) | safe }}
|
{{ page.content | replace(from="<!-- toc -->", to=macros::toc(toc=page.toc)) | safe }}
|
||||||
|
|
||||||
<div class="post-footer-support">
|
<div class="post-footer-support">
|
||||||
<h2>Support Me</h2>
|
<h2>Support Me</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user