hugo-whisper-theme/README.md

138 lines
4.2 KiB
Markdown
Raw Permalink Normal View History

2019-02-17 06:55:16 +00:00
# Hugo Whisper Theme
2019-02-17 13:20:34 +00:00
Whisper is a minimal documentation theme built for Hugo. The design and functionality is intentionally minimal.
2019-02-17 06:55:16 +00:00
2020-01-17 07:30:12 +00:00
2020-09-06 03:11:35 +00:00
[Live Demo](https://hugo-whisper.netlify.app/) |
[Zerostatic Themes](https://www.zerostatic.io/)
2019-02-17 06:55:16 +00:00
2022-01-03 00:50:35 +00:00
<a href="https://www.buymeacoffee.com/zerostatic" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
![Hugo Whisper Theme screenshot](https://www.zerostatic.io/theme/hugo-whisper/hugo-whisper-screenshot.png)
2019-02-17 06:55:16 +00:00
## Theme features
2019-02-17 13:20:34 +00:00
### Content Types
- Docs (Markdown)
- Homepage
### Content Management
- This theme generates documentation from markdown files located in `content/docs`
- The "Home" page is not documentation, it can be used to introduce your project etc.
### Features
- Beautiful and clean typography for all semantic HTML elements
### SCSS
- SCSS (Hugo Pipelines)
- Responsive design
- Bootstrap 4 grid and media queries only
### Speed
- 100/100 Google Lighthouse speed score
- 21KB without images ⚡
- Vanilla JS only
### Menu
- Responsive mobile menu managed in `config.toml`
### Content
- Documentation examples included, using all markdown syntax
2019-02-17 06:55:16 +00:00
# Installation
To use this theme you will need to have Hugo installed. If you don't already have Hugo installed please follow the official [installation guide](https://gohugo.io/getting-started/installing/)
### Check Hugo version (Hugo 0.51+ Extended is required)
2019-02-17 06:55:16 +00:00
This theme uses [Hugo Pipes](https://gohugo.io/hugo-pipes/scss-sass/) to compile SCSS and minify assets. Please make sure you have the **Hugo Extended** version installed. If you are not using the extended version this theme will not not compile.
To check your version of Hugo, run:
2019-02-17 06:55:16 +00:00
```
hugo version
```
This will output the currently installed version of Hugo. Make sure you see `/extended` after the version number, for example `Hugo Static Site Generator v0.51/extended darwin/amd64 BuildDate: unknown` You do not need to use version v0.51 specifically, you can use any version of Hugo above 0.51. It just needs to have the `/extended` part
2019-02-17 06:55:16 +00:00
### Create a new Hugo site
```
hugo new site mynewsite
```
This will create a fresh Hugo site in the folder `mynewsite`.
### Install theme
Copy or git clone this theme into the sites themes folder `mynewsite/themes`
#### Install with Git
```
cd mynewsite
git clone https://github.com/zerostaticthemes/hugo-whisper-theme.git themes/hugo-whisper-theme
2019-02-17 06:55:16 +00:00
```
#### Install from .zip file
You can download the .zip file located here https://github.com/zerostaticthemes/hugo-whisper-theme/archive/master.zip.
2019-02-17 06:55:16 +00:00
2019-02-17 13:20:34 +00:00
Extract the downloaded .zip inside the `themes` folder. Rename the extracted folder from `hugo-whisper-theme-master` -> `hugo-whisper-theme`. You should end up with the following folder structure `mynewsite/themes/hugo-whisper-theme`
2019-02-17 06:55:16 +00:00
### Add example content
2019-02-17 13:20:34 +00:00
Copy the entire contents of the `mynewsite/themes/hugo-whisper-theme/exampleSite/` folder to root folder of your Hugo site, ie `mynewsite/`
To copy the files using terminal, make sure you are still in the projects root, ie the `mynewsite` folder.
```
cp -a themes/hugo-whisper-theme/exampleSite/. .
```
2019-02-17 06:55:16 +00:00
### Update config.toml
2019-02-17 13:20:34 +00:00
After you copy the `config.toml` into the root folder of your Hugo site you will need to update the `baseURL`, `themesDir` and `theme` values in `mynewsite/config.toml`
2019-02-17 06:55:16 +00:00
```
baseURL = "/"
themesDir = "themes"
2019-02-17 13:20:34 +00:00
theme = "hugo-whisper-theme"
2019-02-17 06:55:16 +00:00
```
### Run Hugo
After installing the theme for the first time, generate the Hugo site.
2019-02-17 13:20:34 +00:00
You run this command from the root folder of your Hugo site ie `mynewsite/`
2019-02-17 06:55:16 +00:00
```
hugo
```
For local development run Hugo's built-in local server.
```
hugo server
```
Now enter [`localhost:1313`](http://localhost:1313) in the address bar of your browser.
2020-01-17 07:19:23 +00:00
2022-01-03 00:50:35 +00:00
### Other Hugo Themes by Zerostatic
- [Hugo Whisper](https://github.com/zerostaticthemes/hugo-whisper-theme)
- [Hugo Serif](https://github.com/zerostaticthemes/hugo-serif-theme)
- [Hugo Winston](https://github.com/zerostaticthemes/hugo-winston-theme)
- [Hugo Advance](https://www.zerostatic.io/theme/hugo-advance/)
- [Hugo Paradigm](https://www.zerostatic.io/theme/hugo-paradigm/)
2020-01-17 07:19:23 +00:00
2022-01-03 00:50:35 +00:00
🇦🇺 **Made in Australia** by Robert Austin - leave a star mate!