mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 14:31:35 +01:00
feat: add pages.html template
This commit is contained in:
parent
e83ca5bddc
commit
eca48537f7
3 changed files with 11 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
+++
|
||||
render = false
|
||||
page_template = "pages.html"
|
||||
+++
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
+++
|
||||
title = "About"
|
||||
path = "about"
|
||||
[extra]
|
||||
author = ""
|
||||
+++
|
||||
|
||||
## Hello World
|
||||
|
|
|
|||
10
templates/pages.html
Normal file
10
templates/pages.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{% extends "index.html" %}<!---->
|
||||
{% block main %}
|
||||
<article>
|
||||
<header class="mb-16">
|
||||
<h1 class="!my-0 pb-2.5">{{ page.title }}</h1>
|
||||
</header>
|
||||
|
||||
<section>{{ page.content | safe }}</section>
|
||||
</article>
|
||||
{% endblock main %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue