Compare commits

...

10 Commits

Author SHA1 Message Date
Cameron Himes edd2048c00
fix 404.html conflict 2022-03-24 19:34:58 -04:00
Thom Dickson 7628139909 Merge pull request 'add LICENSE' (#4) from caton101/website:license into master
Reviewed-on: MountainLinuxClub/website#4
2022-03-24 23:23:19 +00:00
Cameron Himes 8293e074ca
fix whitespace on LICENSE 2022-03-24 19:10:54 -04:00
Cameron Himes 286aa51015
add LICENSE 2022-03-24 19:03:22 -04:00
Thom Dickson 64b0f50ac1 Merge pull request 'zola-base' (#1) from zola-base into master
Reviewed-on: MountainLinuxClub/website#1
2022-03-24 22:54:43 +00:00
Thom Dickson 0185c6b3f9
Update gitignore 2022-03-24 15:27:16 -04:00
Thom Dickson a92ee83b87
Add mobile layouts 2022-03-24 15:27:03 -04:00
Thom Dickson 236b0e5eeb
Add planned pages list 2022-03-20 14:29:35 -04:00
Thom Dickson 488e853ec2
Add basic base layout 2022-03-20 14:24:55 -04:00
Thom Dickson bf4d599ccd
Add some basic zola boilerplate 2022-03-18 23:04:32 -04:00
11 changed files with 153 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
public/
Session.vim

24
LICENSE.md Normal file
View File

@ -0,0 +1,24 @@
Copyright 2022 Mountain Linux
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

25
config.toml Normal file
View File

@ -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"],
]

5
content/about.md Normal file
View File

@ -0,0 +1,5 @@
+++
title="About Us"
+++
This is an about us page

38
sass/main.scss Normal file
View File

@ -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";
}

11
sass/mobile.scss Normal file
View File

@ -0,0 +1,11 @@
body {
nav {
position: unset;
height: auto;
width: 100%;
}
main {
margin-left: 0;
height: auto;
}
}

View File

@ -43,4 +43,4 @@
</div> </div>
</body> </body>
</html> </html>

22
templates/base.html Normal file
View File

@ -0,0 +1,22 @@
<html>
<head>
<title>
{% if page.title %}
{{ page.title }}
{% else %}
Mountain Linux Club
{% endif %}
</title>
<link rel="stylesheet" href="{{ get_url(path='main.css') }}">
</head>
<body>
{% include "sidebar.html" %}
<main>
<article>
{% block content %}
{% endblock %}
</article>
</main>
</body>
</html>

4
templates/index.html Normal file
View File

@ -0,0 +1,4 @@
{% extends "base.html" %}
{% block content %}
This will be the homepage
{% endblock %}

7
templates/page.html Normal file
View File

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
{% if page.title %}
<h1>{{ page.title }}</h1>
{% endif %}
{{ page.content | safe }}
{% endblock %}

14
templates/sidebar.html Normal file
View File

@ -0,0 +1,14 @@
<nav>
<div>
<a href="/"><img src="{{ get_url(path='logo.png') }}"></a>
</div>
<div>
<ul>
{% for page in config.extra.toolbar_pages %}
<li>
<a href="{{ get_url(path=page[1]) }}">{{ page[0] }}</a>
</li>
{% endfor %}
</ul>
</div>
</nav>