From 69a41d28f45eddc3fd9a08b3f9cbe77bbc8ccf19 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sat, 13 Feb 2021 09:52:34 +0100 Subject: [PATCH] Base template --- config.toml | 1 + content/_index.md | 5 +++++ sass/main.scss | 0 templates/base.html | 18 ++++++++++++++++++ templates/index.html | 5 +++++ 5 files changed, 29 insertions(+) create mode 100644 content/_index.md create mode 100644 sass/main.scss create mode 100644 templates/base.html create mode 100644 templates/index.html diff --git a/config.toml b/config.toml index cfad1f0..9600eb2 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,5 @@ base_url = "https://it.pedf.cuni.cz" +title = "KITTV" compile_sass = true highlight_code = false diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..de8ec6a --- /dev/null +++ b/content/_index.md @@ -0,0 +1,5 @@ ++++ ++++ + +Hello World! + diff --git a/sass/main.scss b/sass/main.scss new file mode 100644 index 0000000..e69de29 diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..9222ab2 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,18 @@ + + + + + + + {%- block title -%} + {{ config.title }} + {%- endblock title -%} + + + + +
+ {% block content %}{% endblock content %} +
+ + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..d3312c1 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} + {{ section.content | safe }} +{% endblock content %}