From 678c3fcb723ec50c786e3eaaabdfbefb9e995299 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Tue, 19 Sep 2023 19:15:03 +0200 Subject: [PATCH] zola folder structure --- .gitignore | 1 + config.toml | 20 +++++++++++ content/FILES_WILL_BE_THERE | 0 sass/_fonts.scss | 25 ++++++++++++++ sass/content.scss | 5 +++ sass/general.scss | 14 ++++++++ static/img/FILES_WILL_BE_THERE | 0 templates/404.html | 18 ++++++++++ templates/base.html | 62 ++++++++++++++++++++++++++++++++++ templates/index.html | 6 ++++ todo.md | 2 ++ 11 files changed, 153 insertions(+) create mode 100644 .gitignore create mode 100644 config.toml create mode 100644 content/FILES_WILL_BE_THERE create mode 100644 sass/_fonts.scss create mode 100644 sass/content.scss create mode 100644 sass/general.scss create mode 100644 static/img/FILES_WILL_BE_THERE create mode 100644 templates/404.html create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 todo.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..364fdec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..d7ea4ac --- /dev/null +++ b/config.toml @@ -0,0 +1,20 @@ +# The URL the site will be built for +base_url = "https://www.pkmples.cz" +title = "PKM PARTY PLES" + +compile_sass = true +minify_html = true +build_search_index = false + +[markdown] +highlight_code = true +external_links_no_follow = true +external_links_no_referrer = true +smart_punctuation = true + +[extra] +git = "https://github.com/fofrweb/com_pkmples.cz" +nav_items = [ + {name="Home", path="/"}, +] + diff --git a/content/FILES_WILL_BE_THERE b/content/FILES_WILL_BE_THERE new file mode 100644 index 0000000..e69de29 diff --git a/sass/_fonts.scss b/sass/_fonts.scss new file mode 100644 index 0000000..37870ee --- /dev/null +++ b/sass/_fonts.scss @@ -0,0 +1,25 @@ +@font-face { + font-family: open-sans; + font-weight: normal; + font-style: normal; + src: url('fonts/open-sans-regular.woff2') format('woff2'), + url('fonts/open-sans-regular.woff') format('woff'), + url('fonts/open-sans-regular.ttf') format('truetype'); +} +@font-face { + font-family: open-sans; + font-weight: normal; + font-style: italic; + src: url('fonts/open-sans-italic.woff2') format('woff2'), + url('fonts/open-sans-italic.woff') format('woff'), + url('fonts/open-sans-italic.ttf') format('truetype'); +} +@font-face { + font-family: open-sans; + font-weight: bold; + font-style: normal; + src: url('fonts/open-sans-bold.woff2') format('woff2'), + url('fonts/open-sans-bold.woff') format('woff'), + url('fonts/open-sans-bold.ttf') format('truetype'); +} + diff --git a/sass/content.scss b/sass/content.scss new file mode 100644 index 0000000..137974e --- /dev/null +++ b/sass/content.scss @@ -0,0 +1,5 @@ +.content { + display: flex; + flex-direction: column; + margin: 2rem 8rem; +} diff --git a/sass/general.scss b/sass/general.scss new file mode 100644 index 0000000..de5b158 --- /dev/null +++ b/sass/general.scss @@ -0,0 +1,14 @@ +.flex-col { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} + +.flex-row { + display: flex; + justify-content: center; + align-items: center; + flex-direction: row; +} + diff --git a/static/img/FILES_WILL_BE_THERE b/static/img/FILES_WILL_BE_THERE new file mode 100644 index 0000000..e69de29 diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..eeb0e5a --- /dev/null +++ b/templates/404.html @@ -0,0 +1,18 @@ + + + + PKM PARTY PLES | 404 Not found + + + + + + + +
+

404 - Not found

+ Home +
+ + + diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..a7ae4a1 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,62 @@ + + + + + {% block title %} + {% if current_path != "/" %} + {{ config.title }} – + {% if section.title %} + {{ section.title }} + {% elif page.title %} + {{ page.title }} + {% endif %} + {% else %} + {{ config.title }} + {% endif %} + {% endblock title %} + + + + + + + + + {% block styles %} + {% endblock stles %} + + +
+ +
+ +
+ {% block content %} +
+ {% if section %} + {{ section.content | safe }} + {% elif page %} + {{ page.content | safe }} + {% endif %} +
+ {% endblock content %} +
+ + + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..36b797b --- /dev/null +++ b/templates/index.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block content %} + +{% endblock content %} + diff --git a/todo.md b/todo.md new file mode 100644 index 0000000..b6dbda7 --- /dev/null +++ b/todo.md @@ -0,0 +1,2 @@ +# TODO +