Skip to content

Commit 33fa557

Browse files
committed
Use chapter content instead of frontmatter field
We can use markdown this way.
1 parent a106931 commit 33fa557

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

content/this-month/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title = "This Month in Rust OSDev"
3-
template = "section.html"
43
sort_by = "date"
5-
description = "These posts give a regular overview of the most important changes to the RustOSDev tools and libraries."
64
render = false
75
+++
6+
7+
These posts give a regular overview of the most important changes to the RustOSDev tools and libraries.

templates/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
<h1 style="visibility: hidden; height: 0px; margin: 0px; padding: 0px;">Rust OSDev</h1>
88

9-
<h2>This Month in Rust OSDev</h2>
10-
{% set section = get_section(path = "this-month/_index.md") %}
11-
<p>{{ section.description }}</p>
9+
{% set this_month = get_section(path = "this-month/_index.md") %}
10+
<h2>{{ this_month.title }}</h2>
11+
{{ this_month.content | safe }}
1212
<ul>
13-
{% for page in section.pages %}
13+
{% for page in this_month.pages %}
1414
<li><a href="{{ page.path | safe }}">{{ page.extra.month }}</a></li>
1515
{% endfor %}
1616
</ul>

templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
44

55
{% block main %}
6-
<h1>{{ page.title }}</h1>
6+
<h1>{{ page.title | safe}}</h1>
77

88
<span class="post-authors post-date">Written by
99
{% for author in page.extra.authors -%}

0 commit comments

Comments
 (0)