Use different template for section
This is useful for pages that are not articles, such as 'about'. Creating a new section with only '_index.md' creates a new plain page.master
parent
e3868a434d
commit
b42b67b521
@ -0,0 +1,5 @@
|
||||
+++
|
||||
title = "About"
|
||||
template = "section.html"
|
||||
+++
|
||||
|
@ -0,0 +1,10 @@
|
||||
{% extends "index.html" %}
|
||||
|
||||
{% block title %}
|
||||
{{ section.title }} – {{ config.title }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ section.title | safe }}</h1>
|
||||
{{ section.content | safe }}
|
||||
{% endblock content %}
|
Loading…
Reference in New Issue