From bf4d599ccd68187edaf14ab0f55e842acdf09f91 Mon Sep 17 00:00:00 2001 From: Thom Dickson Date: Fri, 18 Mar 2022 23:04:32 -0400 Subject: [PATCH] Add some basic zola boilerplate --- .gitignore | 1 + config.toml | 16 ++++++++++++++++ content/about.md | 5 +++++ templates/base.html | 16 ++++++++++++++++ templates/index.html | 4 ++++ templates/page.html | 7 +++++++ 6 files changed, 49 insertions(+) create mode 100644 .gitignore create mode 100644 config.toml create mode 100644 content/about.md create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 templates/page.html 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..312dec5 --- /dev/null +++ b/config.toml @@ -0,0 +1,16 @@ +# The URL the site will be built for +base_url = "https://mountainlinux.club" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = true + +[markdown] +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = true + +[extra] +# Put all your custom variables here diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..28961f6 --- /dev/null +++ b/content/about.md @@ -0,0 +1,5 @@ ++++ +title="About Us" ++++ + +This is an about us page diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..91d6745 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,16 @@ + + + + {% if page.title %} + {{ page.title }} + {% else %} + Mountain Linux Club + {% endif %} + + + + {% block content %} + {% endblock %} + + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..c339891 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} +{% block content %} +This will be the homepage +{% endblock %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..b27e1b1 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} +{% block content %} +{% if page.title %} +

{{ page.title }}

+{% endif %} +{{ page.content | safe }} +{% endblock %}