commit 8f3c3d1d8291aa6d5b18d9f6ef2adf7c99ff692c Author: Emil Miler Date: Fri Mar 20 15:11:08 2020 +0100 Základní šablona diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..42d7438 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..37afe86 --- /dev/null +++ b/config.toml @@ -0,0 +1,19 @@ +# The URL the site will be built for +base_url = "https://example.com" + +# The site title and description; used in RSS by default. +title = "Title" +description = "Description" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = false + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = false + +[extra] +# Put all your custom variables here diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..e4d3c3d --- /dev/null +++ b/content/_index.md @@ -0,0 +1,3 @@ ++++ +title="Section Title" ++++ diff --git a/content/section1/_index.md b/content/section1/_index.md new file mode 100644 index 0000000..1e57fa8 --- /dev/null +++ b/content/section1/_index.md @@ -0,0 +1,3 @@ ++++ +title="Section 1" ++++ diff --git a/content/section1/page1.md b/content/section1/page1.md new file mode 100644 index 0000000..4200a2a --- /dev/null +++ b/content/section1/page1.md @@ -0,0 +1,3 @@ ++++ +title="Page 1" ++++ diff --git a/content/section1/page2.md b/content/section1/page2.md new file mode 100644 index 0000000..f126268 --- /dev/null +++ b/content/section1/page2.md @@ -0,0 +1,3 @@ ++++ +title="Page 2" ++++ diff --git a/content/section2/_index.md b/content/section2/_index.md new file mode 100644 index 0000000..b785528 --- /dev/null +++ b/content/section2/_index.md @@ -0,0 +1,3 @@ ++++ +title="Section 2" ++++ diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..81a0072 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,38 @@ + + + + + + + {% block title %}{{ config.title }}{% endblock title %} + + + + + + +
+ +
content
+
+ + diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..77397ce --- /dev/null +++ b/templates/section.html @@ -0,0 +1,6 @@ +{% extends "index.html" %} + +{% block content %} +

{{ section.title }}

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