diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..08c7d95 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public/ +Session.vim diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..b0935ea --- /dev/null +++ b/config.toml @@ -0,0 +1,25 @@ +# 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 +toolbar_pages = [ + ["About Us", "about"], + ["Chat", "chat"], + ["Get involved", "getinvolved"], + ["Projects", "projects"], + ["Helpful Resources", "resources"], + ["Unhelpful Resources", "unresources"], + ["Members' PGP Keys", "keys"], +] 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/sass/main.scss b/sass/main.scss new file mode 100644 index 0000000..eb921eb --- /dev/null +++ b/sass/main.scss @@ -0,0 +1,38 @@ +$sidebar_width: 20%; +$sidebar_background: rgba(255, 0, 0, .1); +$body_background: rgba(0, 255, 0, .1); + +body { + margin: 0; + nav { + height: 100%; + position: fixed; + width: $sidebar_width; + background: $sidebar_background; + padding-top: 32px; + padding-bottom: 16px; + img { + width: 100%; + } + div { + padding: 0 16px 0 16px; + } + } + main { + height: 100%; + box-sizing: border-box; + margin-left: $sidebar_width; + background: $body_background; + padding-top: 50px; + article { + margin: auto; + border: 1px solid blue; + padding: 16px; + max-width: 1000px; + } + } +} + +@media screen and (max-width: 1000px) { + @import "mobile.scss"; +} diff --git a/sass/mobile.scss b/sass/mobile.scss new file mode 100644 index 0000000..656e9b3 --- /dev/null +++ b/sass/mobile.scss @@ -0,0 +1,11 @@ +body { + nav { + position: unset; + height: auto; + width: 100%; + } + main { + margin-left: 0; + height: auto; + } +} diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..fca4400 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} +{% block content %} +

Insert epic 404 page here

+{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..741c6d4 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,22 @@ + + + + {% if page.title %} + {{ page.title }} + {% else %} + Mountain Linux Club + {% endif %} + + + + + {% include "sidebar.html" %} +
+
+ {% 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 %} diff --git a/templates/sidebar.html b/templates/sidebar.html new file mode 100644 index 0000000..c4f6072 --- /dev/null +++ b/templates/sidebar.html @@ -0,0 +1,14 @@ +