2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
+++
|
|
|
|
title = "juice"
|
2021-02-18 21:33:11 +00:00
|
|
|
description = "An intuitive, elegant, and lightweight Zola theme for product sites."
|
2020-08-10 09:46:26 +00:00
|
|
|
template = "theme.html"
|
2022-06-06 08:46:29 +00:00
|
|
|
date = 2022-06-03T14:22:50-07:00
|
2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
[extra]
|
2022-06-06 08:46:29 +00:00
|
|
|
created = 2022-06-03T14:22:50-07:00
|
|
|
|
updated = 2022-06-03T14:22:50-07:00
|
2022-04-20 12:53:48 +00:00
|
|
|
repository = "https://github.com/huhu/juice.git"
|
2020-08-10 09:46:26 +00:00
|
|
|
homepage = "https://github.com/huhu/juice"
|
|
|
|
minimum_version = "0.11.0"
|
|
|
|
license = "MIT"
|
|
|
|
demo = "https://juice.huhu.io"
|
|
|
|
|
|
|
|
[extra.author]
|
|
|
|
name = "Huhu teams"
|
|
|
|
homepage = "https://huhu.io"
|
|
|
|
+++
|
|
|
|
|
|
|
|
# Juice
|
|
|
|
|
2021-02-18 21:33:11 +00:00
|
|
|
<img align="right" width="150" height="150" src="/content/juice.svg">
|
2020-08-10 09:46:26 +00:00
|
|
|
|
2021-02-18 21:33:11 +00:00
|
|
|
**Juice** is an intuitive, elegant, and responsive Zola theme for product sites.
|
2020-08-10 09:46:26 +00:00
|
|
|
|
|
|
|
- Build for product sites
|
|
|
|
- Simple and intuitive structure
|
|
|
|
- Clean and elegant design
|
|
|
|
- Responsive and mobile device compatible
|
|
|
|
- Customize and extend friendly
|
|
|
|
|
|
|
|
https://juice.huhu.io
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
|
|
|
First download this theme to your `themes` directory:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ cd themes
|
|
|
|
$ git clone https://github.com/huhu/juice.git
|
|
|
|
```
|
|
|
|
|
|
|
|
or add as a submodule
|
|
|
|
```bash
|
|
|
|
$ git submodule add https://github.com/huhu/juice themes/juice
|
|
|
|
```
|
|
|
|
|
|
|
|
and then enable it in your `config.toml`:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
theme = "juice"
|
|
|
|
```
|
|
|
|
|
|
|
|
# Structure
|
|
|
|
|
|
|
|
### Hero
|
|
|
|
|
|
|
|
**Juice** is designed for product websites, hence we let **hero** part fills whole of screen.
|
|
|
|
You can customize your **hero** by using `hero` block in the `index.html`.
|
|
|
|
|
|
|
|
```html
|
2021-05-08 21:24:44 +00:00
|
|
|
{%/* extends "juice/templates/index.html" */%}
|
2020-08-10 09:46:26 +00:00
|
|
|
{%/* block hero */%}
|
|
|
|
<div>
|
|
|
|
Your cool hero html...
|
|
|
|
</div>
|
|
|
|
{%/* endblock hero */%}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Page
|
|
|
|
|
|
|
|
Every markdown file located in `content` directory will become a **Page**. There also will display as
|
|
|
|
a navigate link on the top-right corner.
|
|
|
|
You can change the frontmatter's `weight` value to sort the order (ascending order).
|
|
|
|
|
|
|
|
```
|
|
|
|
+++
|
|
|
|
title = "Changelog"
|
|
|
|
description = "Changelog"
|
2021-02-18 21:33:11 +00:00
|
|
|
weight = 2
|
2020-08-10 09:46:26 +00:00
|
|
|
+++
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
### CSS variables
|
|
|
|
|
|
|
|
You can override theme variable by creating a file named `_variables.html` in your `templates` directory.
|
|
|
|
|
|
|
|
```html
|
|
|
|
<style>
|
|
|
|
:root {
|
|
|
|
/* Primary theme color */
|
|
|
|
--primary-color: #FED43F;
|
|
|
|
/* Primary theme text color */
|
|
|
|
--primary-text-color: #543631;
|
|
|
|
/* Primary theme link color */
|
|
|
|
--primary-link-color: #F9BB2D;
|
|
|
|
/* Secondary color: the background body color */
|
|
|
|
--secondary-color: #fcfaf6;
|
|
|
|
--secondary-text-color: #303030;
|
|
|
|
/* Highlight text color of table of content */
|
|
|
|
--toc-highlight-text-color: #d46e13;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
```
|
|
|
|
|
2022-01-23 22:39:09 +00:00
|
|
|
### Favicon
|
|
|
|
|
|
|
|
```html
|
|
|
|
{%/* extends "juice/templates/index.html" */%}
|
|
|
|
{%/* block favicon */%}
|
|
|
|
<link rel="icon" type="image/png" href="/favicon.ico">
|
|
|
|
{%/* endblock favicon */%}
|
|
|
|
```
|
|
|
|
|
2020-08-10 09:46:26 +00:00
|
|
|
# Configuration
|
|
|
|
|
|
|
|
You can customize some builtin property in `config.toml` file:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[extra]
|
|
|
|
juice_logo_name = "Juice"
|
|
|
|
juice_logo_path = "juice.svg"
|
|
|
|
juice_extra_menu = [
|
|
|
|
{ title = "Github", link = "https://github.com/huhu/juice"}
|
|
|
|
]
|
2021-05-08 21:24:44 +00:00
|
|
|
repository_url = "https://github.com/huhu/juice"
|
2020-08-10 09:46:26 +00:00
|
|
|
```
|
|
|
|
|
2021-05-08 21:24:44 +00:00
|
|
|
# Shortcodes
|
|
|
|
|
|
|
|
**Juice** have some builtin shortcodes available in `templates/shortcodes` directory.
|
|
|
|
|
|
|
|
- `issue(id)` - A shortcode to render issue url, e.g. `issue(id=1)` would render to the link `https://github.com/huhu/juice/issue/1`.
|
|
|
|
|
|
|
|
> The `repository_url` is required.
|
|
|
|
|
2021-02-18 21:33:11 +00:00
|
|
|
# Showcases
|
|
|
|
|
2021-05-08 21:24:44 +00:00
|
|
|
Please see the [showcases page](https://juice.huhu.io/showcases).
|
2021-02-18 21:33:11 +00:00
|
|
|
|
2020-08-10 09:46:26 +00:00
|
|
|
# Contributing
|
|
|
|
|
|
|
|
Thank you very much for considering contributing to this project!
|
|
|
|
|
|
|
|
We appreciate any form of contribution:
|
|
|
|
|
|
|
|
- New issues (feature requests, bug reports, questions, ideas, ...)
|
|
|
|
- Pull requests (documentation improvements, code improvements, new features, ...)
|
2021-05-08 21:24:44 +00:00
|
|
|
|
2020-08-10 09:46:26 +00:00
|
|
|
|