Update to zola v0.12.1 (#861)

This commit is contained in:
Philipp Oppermann
2020-09-27 15:56:13 +02:00
committed by GitHub
parent 68d59147e7
commit 80136cc047
10 changed files with 31 additions and 31 deletions

View File

@@ -1,29 +1,29 @@
{% macro comment(page) %}
{% if page.path == "multiboot-kernel/" %}
{% if page.path == "/multiboot-kernel/" %}
{% include "first-edition/comments/multiboot-kernel.html" %}
{% elif page.path == "entering-longmode/" %}
{% elif page.path == "/entering-longmode/" %}
{% include "first-edition/comments/entering-longmode.html" %}
{% elif page.path == "set-up-rust/" %}
{% elif page.path == "/set-up-rust/" %}
{% include "first-edition/comments/set-up-rust.html" %}
{% elif page.path == "printing-to-screen/" %}
{% elif page.path == "/printing-to-screen/" %}
{% include "first-edition/comments/printing-to-screen.html" %}
{% elif page.path == "allocating-frames/" %}
{% elif page.path == "/allocating-frames/" %}
{% include "first-edition/comments/allocating-frames.html" %}
{% elif page.path == "page-tables/" %}
{% elif page.path == "/page-tables/" %}
{% include "first-edition/comments/page-tables.html" %}
{% elif page.path == "remap-the-kernel/" %}
{% elif page.path == "/remap-the-kernel/" %}
{% include "first-edition/comments/remap-the-kernel.html" %}
{% elif page.path == "kernel-heap/" %}
{% elif page.path == "/kernel-heap/" %}
{% include "first-edition/comments/kernel-heap.html" %}
{% elif page.path == "handling-exceptions/" %}
{% elif page.path == "/handling-exceptions/" %}
{% include "first-edition/comments/handling-exceptions.html" %}
{% elif page.path == "double-faults/" %}
{% elif page.path == "/double-faults/" %}
{% include "first-edition/comments/double-faults.html" %}
{% elif page.path == "catching-exceptions/" %}
{% elif page.path == "/catching-exceptions/" %}
{% include "first-edition/comments/catching-exceptions.html" %}
{% elif page.path == "better-exception-messages/" %}
{% elif page.path == "/better-exception-messages/" %}
{% include "first-edition/comments/better-exception-messages.html" %}
{% elif page.path == "returning-from-exceptions/" %}
{% elif page.path == "/returning-from-exceptions/" %}
{% include "first-edition/comments/returning-from-exceptions.html" %}
{% else %}
No comments.

View File

@@ -19,7 +19,7 @@
</p>
<p>Latest post:
{% set latest_post = posts|last %}
<strong><a href="/{{ latest_post.path | safe }}">{{ latest_post.title }}</a></strong>
<strong><a href="{{ latest_post.path | safe }}">{{ latest_post.title }}</a></strong>
</p>
</div>
@@ -55,10 +55,10 @@
<ul>
{% for subsection_path in extra.subsections %}
{% set subsection = get_section(path=subsection_path) %}
<li><a href="/{{ subsection.path | safe }}">{{ subsection.title }}</a></li>
<li><a href="{{ subsection.path | safe }}">{{ subsection.title }}</a></li>
{% endfor %}
{% for page in extra.pages %}
<li><a href="/{{ page.path | safe }}">{{ page.title }}</a></li>
<li><a href="{{ page.path | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>

View File

@@ -36,10 +36,10 @@
<hr>
<div class="PageNavigation">
{% if page.lighter %}
<a class="prev" href="/{{ page.lighter.path | safe }}">&laquo; {{ page.lighter.title }}</a>
<a class="prev" href="{{ page.lighter.path | safe }}">&laquo; {{ page.lighter.title }}</a>
{% endif %}
{% if page.heavier %}
<a class="next" href="/{{ page.heavier.path | safe }}">{{ page.heavier.title }} &raquo;</a>
<a class="next" href="{{ page.heavier.path | safe }}">{{ page.heavier.title }} &raquo;</a>
{% endif %}
</div>