mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Move warnings before toc to fix toc placement
The placement was off for pages with warnings.
This commit is contained in:
@@ -11,10 +11,6 @@
|
|||||||
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}
|
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}
|
||||||
</time>
|
</time>
|
||||||
|
|
||||||
<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>.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<aside id="toc-aside">
|
<aside id="toc-aside">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<ol>
|
<ol>
|
||||||
@@ -28,6 +24,11 @@
|
|||||||
</li>{% endfor %}
|
</li>{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
</aside>
|
</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>.
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ page.content | safe }}
|
{{ page.content | safe }}
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
|
||||||
|
|||||||
@@ -14,13 +14,6 @@
|
|||||||
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}
|
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}
|
||||||
</time>
|
</time>
|
||||||
|
|
||||||
{% if page.extra.warning %}
|
|
||||||
<div class="warning">
|
|
||||||
{% if page.extra.warning_short %} <b>{{ page.extra.warning_short }}</b> {% endif %}
|
|
||||||
{{ page.extra.warning | markdown(inline=true)}}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<aside id="toc-aside">
|
<aside id="toc-aside">
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<ol>
|
<ol>
|
||||||
@@ -34,6 +27,14 @@
|
|||||||
</li>{% endfor %}
|
</li>{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
|
{% if page.extra.warning %}
|
||||||
|
<div class="warning">
|
||||||
|
{% if page.extra.warning_short %} <b>{{ page.extra.warning_short }}</b> {% endif %}
|
||||||
|
{{ page.extra.warning | markdown(inline=true)}}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{{ page.content | safe | replace(from="<!-- toc -->", to=macros::toc(toc=toc))}}
|
{{ page.content | safe | replace(from="<!-- toc -->", to=macros::toc(toc=toc))}}
|
||||||
|
|
||||||
<div class="post-footer-support">
|
<div class="post-footer-support">
|
||||||
|
|||||||
Reference in New Issue
Block a user