From 488e853ec2fd840f6709a873c249b320050dd53d Mon Sep 17 00:00:00 2001 From: Thom Dickson Date: Sun, 20 Mar 2022 14:24:55 -0400 Subject: [PATCH] Add basic base layout --- config.toml | 4 ++++ sass/main.scss | 30 ++++++++++++++++++++++++++++++ templates/base.html | 10 ++++++++-- templates/sidebar.html | 14 ++++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 sass/main.scss create mode 100644 templates/sidebar.html diff --git a/config.toml b/config.toml index 312dec5..9e74342 100644 --- a/config.toml +++ b/config.toml @@ -14,3 +14,7 @@ highlight_code = true [extra] # Put all your custom variables here +toolbar_pages = [ + ["About Us", "about"], + ["Contact", "contact"], +] diff --git a/sass/main.scss b/sass/main.scss new file mode 100644 index 0000000..d4106b4 --- /dev/null +++ b/sass/main.scss @@ -0,0 +1,30 @@ +$sidebar_width: 20%; + +body { + margin: 0; + nav { + height: 100%; + position: fixed; + width: $sidebar_width; + background: rgba(255, 0, 0, .1); + padding-top: 32px; + img { + width: 100%; + } + div { + padding: 0 16px 0 16px; + } + } + main { + height: 100%; + margin-left: $sidebar_width; + background: rgba(0, 255, 0, .1); + padding-top: 50px; + article { + margin: auto; + border: 1px solid blue; + padding: 16px; + max-width: 1000px; + } + } +} diff --git a/templates/base.html b/templates/base.html index 91d6745..741c6d4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,10 +7,16 @@ Mountain Linux Club {% endif %} + - {% block content %} - {% endblock %} + {% include "sidebar.html" %} +
+
+ {% block content %} + {% endblock %} +
+
diff --git a/templates/sidebar.html b/templates/sidebar.html new file mode 100644 index 0000000..ba80c63 --- /dev/null +++ b/templates/sidebar.html @@ -0,0 +1,14 @@ +