Add some basic zola boilerplate

This commit is contained in:
Thom Dickson 2022-03-18 23:04:32 -04:00
parent c28c39c73a
commit bf4d599ccd
Signed by untrusted user: boots
GPG Key ID: 40BE2AF8EBF8D2BB
6 changed files with 49 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
public/

16
config.toml Normal file
View File

@ -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

5
content/about.md Normal file
View File

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

16
templates/base.html Normal file
View File

@ -0,0 +1,16 @@
<html>
<head>
<title>
{% if page.title %}
{{ page.title }}
{% else %}
Mountain Linux Club
{% endif %}
</title>
</head>
<body>
{% block content %}
{% endblock %}
</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 %}