https://github.com/kemingy/nutshell
A theme for Zola
https://github.com/kemingy/nutshell
theme zola zola-theme
Last synced: 3 months ago
JSON representation
A theme for Zola
- Host: GitHub
- URL: https://github.com/kemingy/nutshell
- Owner: kemingy
- License: mit
- Created: 2019-11-15T03:00:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-14T05:20:32.000Z (about 4 years ago)
- Last Synced: 2025-04-05T04:16:34.415Z (6 months ago)
- Topics: theme, zola, zola-theme
- Language: SCSS
- Homepage: https://kemingy.github.io/nutshell/
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nutshell

A theme for [Zola](https://www.getzola.org/) based on [Even](https://github.com/getzola/even).
[Live demo](https://kemingy.github.io/nutshell/)
## Features
* KaTeX with inline `$math$` and `$$equation$$`
* Support mobile
* Categories
* Archive
* Pagination[x]## Install
Download it to your `themes` direction as a git submodule:
```sh
cd themes
git submodule add https://github.com/kemingy/nutshell.git themes/nutshell
```Enable it in your `config.toml` with taxonomies:
```toml
theme = "nutshell"taxonomies = [
{name = "categories", rss = true},
]
```After that, create `content/blogs/_index.md` with config:
```md
+++
paginate_by = 20 # numbers of posts in one page
sort_by = "date" # sort posts by date
+++
```Add your posts to `content/blogs/` folder.
Copy `themes/nutshell/content/*.md` to your `content/`:
```sh
cp themes/nutshell/content/*.md content/
```If you don't need these, you can redefine your `theme_menu` in your `config.toml`:
```toml
theme_menu = [
{url = "$BASE_URL", name = "Home"},
{url = "$BASE_URL/categories", name = "Categories"},
{url = "$BASE_URL/archive", name = "Archive"},
{url = "$BASE_URL/about", name = "About"},
{url = "$BASE_URL/projects", name = "Projects"},
]
```