2020-07-19 08:41:35 +00:00
|
|
|
|
|
|
|
+++
|
|
|
|
title = "solar-theme-zola"
|
|
|
|
description = "A port of solar-theme-hugo for zola"
|
|
|
|
template = "theme.html"
|
2022-10-11 17:32:06 +00:00
|
|
|
date = 2022-10-04T04:04:47-05:00
|
2020-07-19 08:41:35 +00:00
|
|
|
|
|
|
|
[extra]
|
2022-10-11 17:32:06 +00:00
|
|
|
created = 2022-10-04T04:04:47-05:00
|
|
|
|
updated = 2022-10-04T04:04:47-05:00
|
2020-07-19 08:41:35 +00:00
|
|
|
repository = "https://github.com/hulufei/solar-theme-zola.git"
|
|
|
|
homepage = "https://github.com/hulufei/solar-theme-zola"
|
|
|
|
minimum_version = "0.4.0"
|
|
|
|
license = "MIT"
|
|
|
|
demo = ""
|
|
|
|
|
|
|
|
[extra.author]
|
|
|
|
name = "hulufei"
|
2021-02-18 21:33:11 +00:00
|
|
|
homepage = "https://github.com/hulufei"
|
2020-07-19 08:41:35 +00:00
|
|
|
+++
|
|
|
|
|
|
|
|
# Solar Theme for Zola
|
|
|
|
|
|
|
|
Port of [Solar theme for Hugo](https://github.com/bake/solar-theme-hugo) to Zola.
|
|
|
|
|
|
|
|
![screenshot](./screenshot.png)
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
First download this theme to your `themes` directory:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ cd themes
|
|
|
|
$ git clone https://github.com/hulufei/solar-theme-zola.git
|
|
|
|
```
|
|
|
|
and then enable it in your `config.toml`:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
theme = "solar-theme-zola"
|
|
|
|
```
|
|
|
|
|
|
|
|
Add `title` and `description`:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
title = "Your Blog Title"
|
|
|
|
description = "Your blog description"
|
|
|
|
```
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
### Color schemes
|
|
|
|
|
|
|
|
Set color scheme to (Solarized) `dark` or (Solarized) `light` with `highlight_theme` option:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
highlight_theme = "solarized-dark"
|
|
|
|
```
|
|
|
|
|
|
|
|
### Sidebar menu
|
|
|
|
|
|
|
|
Set a field in `extra` with a key of `site_menus`:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
site_menus = [
|
2021-09-12 19:44:45 +00:00
|
|
|
{ url = "https://github.com/hulufei/solar-theme-zola", name = "Repository" },
|
2020-07-19 08:41:35 +00:00
|
|
|
{ url = "rss.xml", name = "RSS" },
|
|
|
|
]
|
|
|
|
```
|
|
|
|
Each link needs to have a `url` and a `name`.
|
|
|
|
|
|
|
|
|