This is a Zola theme that is inspired by the no style, please! theme, as well taking minor design cues from Project Nayuki, newspaper websites, Practical Typography, as well as Daniel Bowen’s website.
First download this theme to your themes
directory
cd themes
git clone https://github.com/it-is-final/some-styles.git
and then enable it in your config.toml
:
theme = "some-styles"
If you do not have an _index.md
file in the root of the content
directory, first create one with the following contents:
+++
+++
Then in the templates
directory, create an index.html
file with the following contents
{% extends "some-styles/templates/index.html" %}
{% block home_menu %}
<!-- Insert your menu entries here -->
{% endblock home_menu %}
To add menu entries, you insert <li>
tags into the area marked by the comment.
You are modfiying the index.html
template, to learn more about how the templating works (and the more powerful elements of it), ckeck out the Zola documentation, and the Tera documentation.
For this theme, the index.html
template has two other blocks that can be manipulated to satisfy your customisation needs:
body
: Covers the area where the<nav>
element occupies in the builtindex.html
.content
Covers the contents of the<main>
element in the buildindex.html
.
Add these lines to your config.toml
taxonomies = [
{name = "category"},
{name = "tag"}
]
If you simply wanted to change the author indicated by the copyright message, then modifying (or creating) the author
property in the config.yaml
should be able to do it.
If you want to replace all of the copyright message itself, then create a base.html
file in the root of the templates
folder with the following contents:
{% extends "some-styles/templates/base.html" %}
{% block copyright %}<!-- Insert your custom copyright message here-->{% endblock copyright %}
- This theme uses the normalize.css reset by Nicolas Gallagher and Jonathan Neal.
Its license can be found in
LICENSE-NORMALIZE.md
.