2016-10-22 07:20:15 +00:00
![Sustain - Logo][logo]
2016-12-31 22:56:18 +00:00
## Table of Contents
2016-10-22 07:20:15 +00:00
2019-08-05 12:49:47 +00:00
- [Table of Contents ](#table-of-contents )
2016-10-22 07:20:15 +00:00
- [Installation ](#installation )
2019-08-05 12:49:47 +00:00
- [With `git` ](#with-git )
- [Manual ](#manual )
2016-10-22 07:20:15 +00:00
- [Quick start ](#quick-start )
- [Features ](#features )
- [Syntax highlighting ](#syntax-highlighting )
- [Disqus ](#disqus )
- [Google Analytics ](#google-analytics )
- [About ](#about )
- [Contributing ](#contributing )
- [License ](#license )
********************
![Sustain Screen][screenshot]
********************
2017-02-12 03:28:35 +00:00
< p align = "center" > < b > < a href = "https://demo.nurlan.co/hugo-sustain/" > Sustain Live Demo< / a > < / b > < / p >
2016-10-22 07:20:15 +00:00
2016-12-31 22:56:18 +00:00
## Installation
2016-10-22 07:20:15 +00:00
#### With `git`
2016-12-31 22:56:18 +00:00
From the root of your Hugo site, clone the theme into `themes/hugo-sustain` by running :
2021-02-13 16:43:55 +00:00
```sh
2017-01-18 13:40:54 +00:00
git clone https://github.com/nurlansu/hugo-sustain.git themes/hugo-sustain
2016-10-22 07:20:15 +00:00
```
#### Manual
1. [Download][zip-archive] zip archive.
2. Unarchive it.
3. Move `hugo-sustain` folder in `themes` folder of your blog
For more information read the official [setup guide][hugo-guide] of Hugo.
2016-12-31 22:56:18 +00:00
## Quick start
2016-10-22 07:20:15 +00:00
After installation, take a look in the `exampleSite` folder at. This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation.
```
exampleSite
├── config.toml
├── content
2017-02-20 00:49:02 +00:00
│ ├── projects.md
│ │
2016-10-22 07:20:15 +00:00
│ └── blog
│ ├── creating-a-new-theme.md
│ ├── go-is-for-lovers.md
│ ├── hugo-is-for-lovers.md
│ └── migrate-from-jekyll.md
2017-02-20 00:49:02 +00:00
│
├── data
│ └── projects.yml
│
2016-10-22 07:20:15 +00:00
└── static
```
2016-12-31 22:56:18 +00:00
Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
2016-10-22 07:20:15 +00:00
Hugo includes a development server, so you can view your changes as you go -
very handy. Spin it up with the following command:
2021-02-13 16:43:55 +00:00
```sh
2016-10-22 07:20:15 +00:00
hugo serve
```
Now you can go to [localhost:1313][local] and the Sustain
theme should be visible.
2016-12-31 22:56:18 +00:00
## Features
2016-10-22 07:20:15 +00:00
### Syntax highlighting
Use `highlight = true` in the front matter to include [`highlight.js`][highlight-js] javascript and css files.
### Disqus
2017-06-25 21:42:13 +00:00
To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml` .
2016-10-22 07:20:15 +00:00
### Google Analytics
To add Google Analytics, simply sign up to [Google Analytics][g-analytics] to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml` .
2016-12-31 22:56:18 +00:00
## About
2016-10-22 07:20:15 +00:00
This is a port of the Jekyll theme [Sustain][sustain-jekyll] by [Fábio Madeira][sustain-author]. It supports most of the features of the original theme.
2016-12-31 22:56:18 +00:00
## Contributing
2016-10-22 07:20:15 +00:00
Pull requests, bug fixes, and new features are welcome!
1. Fork the repository
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -a -m 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request on GitHub
2016-12-31 22:56:18 +00:00
## License
< p align = "center" >
2019-08-05 12:49:47 +00:00
< a href = "./LICENSE.md" > < img src = "https://nurlan.co/cdn/logo.svg" width = "100%" height = "128" > < / a >
2016-12-31 22:56:18 +00:00
< a href = "./LICENSE.md" > < strong > MIT< / strong > < / a >
< / p >
2016-10-22 07:20:15 +00:00
2019-08-05 12:49:47 +00:00
[logo]: https://nurlan.co/cdn/sustain.png
[screenshot]: https://nurlan.co/cdn/sustain-screen.png
2016-10-22 07:20:15 +00:00
[bootstrap]: https://getbootstrap.com/
[hugo]: https://gohugo.io/
[gh-pages]: https://pages.github.com/
2017-01-18 13:40:54 +00:00
[zip-archive]: https://github.com/nurlansu/hugo-sustain/archive/master.zip
2016-10-22 07:20:15 +00:00
[hugo-guide]: https://gohugo.io/overview/installing/
[local]: http://localhost:1313/
[highlight-js]: https://highlightjs.org/
[g-analytics]: https://www.google.com/analytics/
[sustain-jekyll]: https://github.com/biomadeira/sustain/
[sustain-author]: https://github.com/biomadeira/