Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suyundukov/hugo-sustain
π¦ Personal blog theme built with Bootstrap, powered by Hugo.
https://github.com/suyundukov/hugo-sustain
hugo hugo-theme
Last synced: 3 days ago
JSON representation
π¦ Personal blog theme built with Bootstrap, powered by Hugo.
- Host: GitHub
- URL: https://github.com/suyundukov/hugo-sustain
- Owner: suyundukov
- License: mit
- Created: 2016-10-22T07:21:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T21:28:23.000Z (7 months ago)
- Last Synced: 2025-01-12T08:04:38.308Z (17 days ago)
- Topics: hugo, hugo-theme
- Language: HTML
- Homepage: https://demo.nurlan.co/hugo-sustain/
- Size: 432 KB
- Stars: 215
- Watchers: 5
- Forks: 145
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![Sustain - Logo][logo]
## Table of Contents
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [With `git`](#with-git)
- [Manual](#manual)
- [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]
********************
## Installation
#### With `git`
From the root of your Hugo site, clone the theme into `themes/hugo-sustain` by running :
```sh
git clone https://github.com/nurlansu/hugo-sustain.git themes/hugo-sustain
```#### Manual
1. [Download][zip-archive] zip archive.
2. Unarchive it.
3. Move `hugo-sustain` folder in `themes` folder of your blogFor more information read the official [setup guide][hugo-guide] of Hugo.
## Quick start
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
βΒ Β βββ projects.md
βΒ Β β
βΒ Β βββ blog
βΒ Β βββ creating-a-new-theme.md
βΒ Β βββ go-is-for-lovers.md
βΒ Β βββ hugo-is-for-lovers.md
βΒ Β βββ migrate-from-jekyll.md
β
βββ data
β βββ projects.yml
β
βββ static
```Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
Hugo includes a development server, so you can view your changes as you go -
very handy. Spin it up with the following command:```sh
hugo serve
```Now you can go to [localhost:1313][local] and the Sustain
theme should be visible.## Features
### Syntax highlighting
Use `highlight = true` in the front matter to include [`highlight.js`][highlight-js] javascript and css files.
### Disqus
To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml`.
### 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`.
## About
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.
## Contributing
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## License
[logo]: https://suyundukov.com/cdn/sustain.png
[screenshot]: https://suyundukov.com/cdn/sustain-screen.png
[bootstrap]: https://getbootstrap.com/
[hugo]: https://gohugo.io/
[gh-pages]: https://pages.github.com/
[zip-archive]: https://github.com/nurlansu/hugo-sustain/archive/master.zip
[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/