diff --git a/config.toml b/config.toml index 70eee16..f86a221 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,6 @@ # The URL the site will be built for base_url = "https://microlab.space" +title = "microlab" # Whether to automatically compile all Sass files in the sass directory compile_sass = true diff --git a/content/kontakty.md b/content/kontakty.md new file mode 100644 index 0000000..9fc62d7 --- /dev/null +++ b/content/kontakty.md @@ -0,0 +1,3 @@ ++++ +title = "Kontakty" ++++ diff --git a/content/projekty/_index.md b/content/projekty/_index.md new file mode 100644 index 0000000..2fea8ac --- /dev/null +++ b/content/projekty/_index.md @@ -0,0 +1,3 @@ ++++ +title = "Projekty" ++++ diff --git a/templates/base.html b/templates/base.html index 2cb2afc..05685e8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,7 +1,20 @@ - microlab + + {% block title %} + {% if current_path != "/" %} + {{ config.title }} – + {% if section.title %} + {{ section.title }} + {% elif page.title %} + {{ page.title }} + {% endif %} + {% else %} + {{ config.title }} + {% endif %} + {% endblock title %} + @@ -17,6 +30,12 @@
-

Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.

+ {% block content %} + {% if section %} + {{ section.content | safe }} + {% elif page %} + {{ page.content | safe }} + {% endif %} + {% endblock content %}
diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/templates/page.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/templates/section.html @@ -0,0 +1 @@ +{% extends "base.html" %}