2020-04-15 16:53:46 +00:00
+++
title = "pickles"
description = "A modern, simple, clean blog theme for Zola."
template = "theme.html"
2024-04-01 20:18:38 +00:00
date = 2024-04-02T04:09:32+10:00
2020-04-15 16:53:46 +00:00
[extra]
2024-04-01 20:18:38 +00:00
created = 2024-04-02T04:09:32+10:00
updated = 2024-04-02T04:09:32+10:00
2020-04-15 16:53:46 +00:00
repository = "https://github.com/lukehsiao/zola-pickles.git"
homepage = "https://github.com/lukehsiao/zola-pickles"
2021-02-18 21:33:11 +00:00
minimum_version = "0.13.0"
2023-08-21 15:31:33 +00:00
license = "BlueOak-1.0.0"
2023-04-30 20:03:30 +00:00
demo = "https://effervescent-chebakia-056748.netlify.app/"
2020-04-15 16:53:46 +00:00
[extra.author]
name = "Luke Hsiao"
2020-12-14 19:47:32 +00:00
homepage = "https://luke.hsiao.dev"
2020-04-15 16:53:46 +00:00
+++
2023-09-22 09:07:16 +00:00
< h1 align = "center" >
🥒< br >
zola-pickes
< / h1 >
< div align = "center" >
< strong > Pickles is a clean, responsive blog theme for < a href = "https://www.getzola.org/" > Zola< / a > based on the < a href = "https://github.com/mismith0227/hugo_theme_pickles" > Hugo theme< / a > with the same name.< / strong >
< / div >
< br >
< div align = "center" >
< a href = "https://effervescent-chebakia-056748.netlify.app/" >
< img src = "https://img.shields.io/badge/demo-website-forestgreen" alt = "demo website" > < / a >
< a href = "https://github.com/lukehsiao/zola-pickles/blob/main/LICENSE" >
< img src = "https://img.shields.io/badge/license-BlueOak--1.0.0-blue" alt = "License" >
< / a >
< / div >
< br >
![pickles screenshot ](https://github.com/lukehsiao/zola-pickles/blob/main/screenshot.png?raw=true )
2020-04-15 16:53:46 +00:00
## Installation
First download this theme to your `themes` directory:
```bash
$ cd themes
$ git clone https://github.com/lukehsiao/zola-pickles.git
```
and then enable it in your `config.toml` :
```toml
theme = "zola-pickles"
```
2023-09-22 09:07:16 +00:00
The theme requires putting the posts in the root of the `content` folder and to enable pagination, for example in `content/_index.md` .
2020-04-15 16:53:46 +00:00
```
+++
paginate_by = 5
sort_by = "date"
insert_anchor_links = "right"
+++
```
2020-07-19 08:41:35 +00:00
## Reference guides
## Configuration Options
2020-04-15 16:53:46 +00:00
```toml
[extra]
# A line to display underneath the main title
subtitle = "Example subtitle"
# Text to display in the footer of the page
copyright = "Copyright authors year"
# Your Google Analytics ID
analytics = ""
# See below
katex_enable = false
2020-07-19 08:41:35 +00:00
# See below
instantpage_enable = false
2020-04-15 16:53:46 +00:00
```
2020-07-19 08:41:35 +00:00
A full example configuration is included in config.toml.
2023-09-22 09:07:16 +00:00
Note how pickles also expects `title` and `description` to also be set in the Zola configuration.
2020-07-19 08:41:35 +00:00
2020-04-15 16:53:46 +00:00
### KaTeX math formula support
2023-09-22 09:07:16 +00:00
This theme contains math formula support using [KaTeX ](https://katex.org/ ), which can be enabled by setting `katex_enable = true` in the `extra` section of `config.toml` .
2020-04-15 16:53:46 +00:00
After enabling this extension, the `katex` short code can be used in documents:
* `{%/* katex(block=true) */%}\KaTeX{%/* end */%}` to typeset a block of math formulas,
similar to `$$...$$` in LaTeX
### Figure Shortcode
2023-09-22 09:07:16 +00:00
The figure shortcode is convenient for captioning figures.
2020-04-15 16:53:46 +00:00
```
{%/* figure(link="https://www.example.com/", src="https://www.example.com/img.jpeg", alt="sample alt text") */%}
Your caption here.
{%/* end */%}
```
2023-09-22 09:07:16 +00:00
### Table Shortcode
The table shortcode is convenient for making mobile-friendly tables (centered with overflow scrollbar).
```
{%/* table() */%}
| Item | Price | # In stock |
| :----------- | ----: | ---------: |
| Juicy Apples | 1.99 | 739 |
| Bananas | 1.89 | 6 |
{%/* end */%}
```
2020-04-15 16:53:46 +00:00
### Fontawesome
This theme includes fontawesome, so that fontawesome icons can be directly used.
2020-07-19 08:41:35 +00:00
### Instant.page
2023-09-22 09:07:16 +00:00
The theme contains instant.page prefetching. This can be enabled by setting `instantpage_enable = true` in the `extra` section of `config.toml` .
2020-07-19 08:41:35 +00:00
## Showing article summaries
2023-09-22 09:07:16 +00:00
By default, the theme will use the first 280 characters of your post as a summary, if a proper [page summary ](https://www.getzola.org/documentation/content/page/#summary ) using `<!-- more -->` is not provided.
For more sensible summaries, we recommend using the manual more indicator.
2020-07-19 08:41:35 +00:00
2020-04-15 16:53:46 +00:00