Use get_section instead of deprecated `sections argument

This commit is contained in:
Philipp Oppermann
2017-10-05 10:14:41 +02:00
parent b58ee1e52b
commit c5cde79130

View File

@@ -5,7 +5,7 @@
{% block title %}{{ config.title }}{% endblock title %} {% block title %}{{ config.title }}{% endblock title %}
{% block main %} {% block main %}
{% set posts = sections.posts %} {% set posts = get_section(path = "posts/_index.md") %}
<div class="front-page-introduction"> <div class="front-page-introduction">
<p> <p>
This blog series creates a small operating system in the This blog series creates a small operating system in the
@@ -42,7 +42,7 @@
</div> </div>
<hr> <hr>
{% set extra = sections.extra %} {% set extra = get_section(path = "extra/_index.md") %}
<h1>{{ extra.title }}</h1> <h1>{{ extra.title }}</h1>
<ul> <ul>
{% for subsection in extra.subsections|reverse %} {% for subsection in extra.subsections|reverse %}