From eca48537f791135a92ebc00a51353abc25719d28 Mon Sep 17 00:00:00 2001 From: st1020 Date: Mon, 23 Oct 2023 20:35:59 +0800 Subject: [PATCH] feat: add pages.html template --- content/pages/_index.md | 1 + content/pages/about.md | 2 -- templates/pages.html | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 templates/pages.html diff --git a/content/pages/_index.md b/content/pages/_index.md index 800a244..48c7335 100644 --- a/content/pages/_index.md +++ b/content/pages/_index.md @@ -1,3 +1,4 @@ +++ render = false +page_template = "pages.html" +++ diff --git a/content/pages/about.md b/content/pages/about.md index b283010..2a5d528 100644 --- a/content/pages/about.md +++ b/content/pages/about.md @@ -1,8 +1,6 @@ +++ title = "About" path = "about" -[extra] -author = "" +++ ## Hello World diff --git a/templates/pages.html b/templates/pages.html new file mode 100644 index 0000000..4904574 --- /dev/null +++ b/templates/pages.html @@ -0,0 +1,10 @@ +{% extends "index.html" %} +{% block main %} +
+
+

{{ page.title }}

+
+ +
{{ page.content | safe }}
+
+{% endblock main %}