From cdb2ca82edf3e9dad489bacaa739d83ac0db0aec Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Fri, 11 Dec 2020 13:17:01 +0100 Subject: [PATCH] Create page template --- content/lorem.md | 6 ++++++ templates/page.html | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 content/lorem.md create mode 100644 templates/page.html diff --git a/content/lorem.md b/content/lorem.md new file mode 100644 index 0000000..1d7fea4 --- /dev/null +++ b/content/lorem.md @@ -0,0 +1,6 @@ ++++ +title = "Lorem Ipsum" + +[taxonomies] +categories = ["lorem", "ipsum"] ++++ diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..4075735 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,10 @@ +{% extends "index.html" %} + +{% block title %} + {{ page.title }} – {{ config.title }} +{% endblock title %} + +{% block content %} +

{{ page.title | safe }}

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