From d463142126d15a2b46e32672ee31c6945b0b0be6 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sat, 15 Apr 2023 15:39:56 +0200 Subject: [PATCH] Add simple project template --- content/projekty/_index.md | 3 ++- templates/project | 0 templates/project.html | 11 +++++++++++ templates/{projects.html => project_list.html} | 0 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 templates/project create mode 100644 templates/project.html rename templates/{projects.html => project_list.html} (100%) diff --git a/content/projekty/_index.md b/content/projekty/_index.md index 650a023..890f613 100644 --- a/content/projekty/_index.md +++ b/content/projekty/_index.md @@ -1,4 +1,5 @@ +++ title = "Projekty" -template = "projects.html" +template = "project_list.html" +page_template = "project.html" +++ diff --git a/templates/project b/templates/project new file mode 100644 index 0000000..e69de29 diff --git a/templates/project.html b/templates/project.html new file mode 100644 index 0000000..da74400 --- /dev/null +++ b/templates/project.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} +
+

{{ page.title }}

+ {{ page.content | safe }} +
+
+ … +
+{% endblock content %} diff --git a/templates/projects.html b/templates/project_list.html similarity index 100% rename from templates/projects.html rename to templates/project_list.html