Set chapter title separately

We avoid the anchor link on mouse-over this way.
This commit is contained in:
Philipp Oppermann
2020-12-16 20:23:48 +01:00
parent 50683507da
commit b353866952
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
+++
title = "Bare Bones"
+++
## Bare Bones
In this first chapter, we explain how to create an operating system for the `x86_64` architecture step for step. Starting from scratch, we first create a minimal Rust executable that doesn't depend on the standard library. We then turn it into a bootable OS kernel by combining it with a bootloader. The resulting disk image can then be launched in the [QEMU](https://www.qemu.org/) emulator or booted on a real machine.

View File

@@ -41,6 +41,7 @@
{% set chapter_slug = chapter | slugify %}
<div class="posts {{chapter_slug}}">
{% set chapter_page = get_page(path = "edition-3/chapters/" ~ chapter_slug ~ ".md" ) %}
<h2>{{ chapter_page.title }}</h2>
{{ chapter_page.content | safe }}
{%- endif -%}