Fix escaping issues by adding safe filters in more places (#678)

This commit is contained in:
Philipp Oppermann
2019-10-08 10:28:45 +02:00
committed by GitHub
parent 50aaa206bf
commit 7f4fc340ad
9 changed files with 15 additions and 15 deletions

View File

@@ -24,7 +24,7 @@
<h1 class="masthead-title">
<a href="/first-edition" title="Home">{{ config.title }} (First Edition)</a>
</h1>
<p><small>{{ config.extra.subtitle }}</small></p>
<p><small>{{ config.extra.subtitle | replace(from=" ", to="&nbsp;") | safe }}</small></p>
</header>
<main>{% block main %}{% endblock main %}</main>
@@ -35,7 +35,7 @@
<hr>
<small>
&copy; <time datetime="2017">2017</time>. All rights reserved.
<a href="{{ get_url(path="@/pages/contact.md") }}">Contact</a>
<a href="{{ get_url(path="@/pages/contact.md") | safe }}">Contact</a>
</small>
</footer>
</div>

View File

@@ -6,6 +6,6 @@
{% block introduction %}
<p>These posts explain how to handle CPU exceptions using naked functions. Historically, these posts were the main exception handling posts before the <code>x86-interrupt</code> calling convention and the <code>x86_64</code> crate existed. Our new way of handling exceptions can be found in the <a href="{{ get_url(path="@/first-edition/posts/09-handling-exceptions/index.md") }}">“Handling Exceptions”</a> post.</p>
<p>These posts explain how to handle CPU exceptions using naked functions. Historically, these posts were the main exception handling posts before the <code>x86-interrupt</code> calling convention and the <code>x86_64</code> crate existed. Our new way of handling exceptions can be found in the <a href="{{ get_url(path="@/first-edition/posts/09-handling-exceptions/index.md") | safe }}">“Handling Exceptions”</a> post.</p>
{% endblock introduction %}

View File

@@ -21,7 +21,7 @@
</div>
<div class="warning">
<b>No longer updated!</b> You are viewing the first edition of “Writing an OS in Rust”, which is no longer updated. You can find the second edition <a href="{{ get_url(path = "@/second-edition/_index.md") }}">here</a>.
<b>No longer updated!</b> You are viewing the first edition of “Writing an OS in Rust”, which is no longer updated. You can find the second edition <a href="{{ get_url(path = "@/second-edition/_index.md") | safe }}">here</a>.
</div>
<div id="bare-bones" class="post-category bare-bones">Bare Bones</div>

View File

@@ -26,7 +26,7 @@
</aside>
<div class="warning">
<b>No longer updated!</b> You are viewing the a post of the first edition of “Writing an OS in Rust”, which is no longer updated. You can find the second edition <a href="{{ get_url(path = "@/second-edition/_index.md") }}">here</a>.
<b>No longer updated!</b> You are viewing the a post of the first edition of “Writing an OS in Rust”, which is no longer updated. You can find the second edition <a href="{{ get_url(path = "@/second-edition/_index.md") | safe }}">here</a>.
</div>
{{ page.content | safe }}