mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Update to zola 0.6.0
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
[build]
|
||||
base = "blog"
|
||||
publish = "blog/public"
|
||||
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.5.1/zola-v0.5.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build"
|
||||
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.6.0/zola-v0.6.0-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build"
|
||||
|
||||
[build.environment]
|
||||
ZOLA_VERSION = "0.5.1"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.5.1/zola-v0.5.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build --base-url $DEPLOY_PRIME_URL"
|
||||
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.6.0/zola-v0.6.0-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build --base-url $DEPLOY_PRIME_URL"
|
||||
|
||||
[context.branch-deploy]
|
||||
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.5.1/zola-v0.5.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build --base-url $DEPLOY_PRIME_URL"
|
||||
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.6.0/zola-v0.6.0-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build --base-url $DEPLOY_PRIME_URL"
|
||||
|
||||
|
||||
[[redirects]]
|
||||
|
||||
Reference in New Issue
Block a user