divpattern is a brazen two-column Zola based on the Jekyll theme of the same name that pairs a prominent sidebar with uncomplicated content.
First download this theme to your themes
directory:
cd themes
git clone https://github.com/highb/divpattern.git
and then enable it in your config.toml
:
theme = "divpattern"
Set a field in extra
with a key of divpattern_links
:
[extra]
divpattern_links = [
{url = "https://google.com", name = "Google.com"},
{url = "https://google.fr", name = "Google.fr"},
]
Each link needs to have a url
and a name
.
By default divpattern ships with a sidebar that affixes it's content to the bottom of the sidebar. You can optionally disable this by setting divpattern_sticky
to false in your config.toml
.
divpattern ships with eight optional themes based on the base16 color scheme. Apply a theme to change the color scheme (mostly applies to sidebar and links).
There are eight themes available at this time.
To use a theme, set the divpattern_theme
field in config.toml
to any of the themes name:
[extra]
divpattern_theme = "theme-base-08"
To create your own theme, look to the Themes section of included CSS file. Copy any existing theme (they're only a few lines of CSS), rename it, and change the provided colors.
divpattern's page orientation can be reversed by setting divpattern_reverse
to true
in the config.toml
.