mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Move introduction from index template to markdown file
To allow translations.
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
+++
|
+++
|
||||||
template = "edition-2/index.html"
|
template = "edition-2/index.html"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
<h1 style="visibility: hidden; height: 0px; margin: 0px; padding: 0px;">Writing an OS in Rust</h1>
|
||||||
|
|
||||||
|
<div class="front-page-introduction">
|
||||||
|
|
||||||
|
This blog series creates a small operating system in the [Rust programming language](https://www.rust-lang.org/). Each post is a small tutorial and includes all needed code, so you can follow along if you like. The source code is also available in the corresponding [Github repository](https://github.com/phil-opp/blog_os).
|
||||||
|
|
||||||
|
Latest post: <!-- latest-post -->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -9,20 +9,10 @@
|
|||||||
{% set posts_section = get_section(path = "edition-2/posts/_index.md") %}
|
{% set posts_section = get_section(path = "edition-2/posts/_index.md") %}
|
||||||
{% set posts = posts_section.pages %}
|
{% set posts = posts_section.pages %}
|
||||||
|
|
||||||
<h1 style="visibility: hidden; height: 0px; margin: 0px; padding: 0px;">Writing an OS in Rust</h1>
|
{{ section.content
|
||||||
|
| replace(from="<!-- latest-post -->", to=macros::latest_post(posts=posts))
|
||||||
<div class="front-page-introduction">
|
| safe
|
||||||
<p>
|
}}
|
||||||
This blog series creates a small operating system in the
|
|
||||||
<a href="https://www.rust-lang.org/">Rust programming language</a>. Each post is a small tutorial and includes all
|
|
||||||
needed code, so you can follow along if you like. The source code is also available in the corresponding
|
|
||||||
<a href="https://github.com/phil-opp/blog_os">Github repository</a>.
|
|
||||||
</p>
|
|
||||||
<p>Latest post:
|
|
||||||
{% set latest_post = posts|last %}
|
|
||||||
<strong><a href="{{ latest_post.path | safe }}">{{ latest_post.title }}</a></strong>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{%- set chapter = "none" -%}
|
{%- set chapter = "none" -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user