mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Update templates for new page sections
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
{% block title %}{{ config.title }}{% endblock title %}
|
||||
|
||||
{% block main %}
|
||||
{% set posts = sections.posts %}
|
||||
<div class="front-page-introduction">
|
||||
<p>
|
||||
This blog series creates a small operating system in the
|
||||
@@ -13,39 +14,45 @@
|
||||
<a href="https://github.com/phil-opp/blog_os">Github repository</a>.
|
||||
</p>
|
||||
<p>Latest post:
|
||||
<strong>{{ macros::latest_post_link(page=pages|reverse|last) }}</strong>
|
||||
{% set latest_post = posts.pages|reverse|last %}
|
||||
<strong><a href="{{ latest_post.path }}">{{ latest_post.title }}</a></strong>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="bare-bones" class="post-category bare-bones">Bare Bones</div>
|
||||
<div class="posts bare-bones">
|
||||
{{ macros::post_link(page=pages.9) }}
|
||||
{{ macros::post_link(page=pages.8) }}
|
||||
{{ macros::post_link(page=pages.7) }}
|
||||
{{ macros::post_link(page=pages.6) }}
|
||||
{{ macros::post_link(page=posts.pages.9) }}
|
||||
{{ macros::post_link(page=posts.pages.8) }}
|
||||
{{ macros::post_link(page=posts.pages.7) }}
|
||||
{{ macros::post_link(page=posts.pages.6) }}
|
||||
</div>
|
||||
|
||||
<div id="memory-management" class="post-category memory-management">Memory Management</div>
|
||||
<div class="posts memory-management">
|
||||
{{ macros::post_link(page=pages.5) }}
|
||||
{{ macros::post_link(page=pages.4) }}
|
||||
{{ macros::post_link(page=pages.3) }}
|
||||
{{ macros::post_link(page=pages.2) }}
|
||||
{{ macros::post_link(page=posts.pages.5) }}
|
||||
{{ macros::post_link(page=posts.pages.4) }}
|
||||
{{ macros::post_link(page=posts.pages.3) }}
|
||||
{{ macros::post_link(page=posts.pages.2) }}
|
||||
</div>
|
||||
|
||||
<div id="interrupts" class="post-category exceptions">Exceptions</div>
|
||||
<div class="posts exceptions">
|
||||
{{ macros::post_link(page=pages.1) }}
|
||||
{{ macros::post_link(page=pages.0) }}
|
||||
{{ macros::post_link(page=posts.pages.1) }}
|
||||
{{ macros::post_link(page=posts.pages.0) }}
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<h1>Additional Resources</h1>
|
||||
|
||||
{% set extra = sections.extra %}
|
||||
<h1>{{ extra.title }}</h1>
|
||||
<ul>
|
||||
{% for subsection in extra.subsections|reverse %}
|
||||
<li><a href="{{ subsection.path }}">{{ subsection.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% for page in extra.pages|reverse %}
|
||||
<li><a href="{{ page.path }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
<aside id="recent-updates">
|
||||
<h1>Recent Updates</h1>
|
||||
TODO
|
||||
|
||||
@@ -4,7 +4,3 @@
|
||||
{{ page.summary | safe }}
|
||||
</article>
|
||||
{% endmacro post_link %}
|
||||
|
||||
{% macro latest_post_link(page) %}
|
||||
<a href="{{ page.path }}">{{ page.title }}</a>
|
||||
{% endmacro latest_post_link %}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{% block introduction %}{% endblock introduction %}
|
||||
|
||||
<div class="posts neutral">
|
||||
{% for page in section.pages %}
|
||||
{% for page in section.pages|reverse %}
|
||||
{{ macros::post_link(page=page) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user