feat: add pages.html template

This commit is contained in:
st1020 2023-10-23 20:35:59 +08:00
parent e83ca5bddc
commit eca48537f7
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,4 @@
+++
render = false
page_template = "pages.html"
+++

View file

@ -1,8 +1,6 @@
+++
title = "About"
path = "about"
[extra]
author = ""
+++
## Hello World

10
templates/pages.html Normal file
View 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 %}