zola-base #1

Merged
boots merged 5 commits from zola-base into master 2022-03-24 22:54:43 +00:00
6 changed files with 49 additions and 0 deletions
Showing only changes of commit bf4d599ccd - Show all commits

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 %}