Skip to content

it-is-final/some-styles

Repository files navigation

some-styles

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.

A screenshot of a white web page with black text.

Installation and Setup

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"

Options

Customise the home menu

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 built index.html.
  • content Covers the contents of the <main> element in the build index.html.

Tags and categories

Add these lines to your config.toml

taxonomies = [
    {name = "category"},
    {name = "tag"}
]

Change the copyright message or author

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

Acknowledgements

About

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE-NORMALIZE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published