Table of Contents
Installation
git
With From the root of your Hugo site, clone the theme into themes/hugo-sustain
by running :
git clone https://github.com/nurlansu/hugo-sustain.git themes/hugo-sustain
Manual
- Download zip archive.
- Unarchive it.
- Move
hugo-sustain
folder inthemes
folder of your blog
For more information read the official setup 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:
hugo serve
Now you can go to localhost:1313 and the Sustain theme should be visible.
Features
Syntax highlighting
Use highlight = true
in the front matter to include 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 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 by FΓ‘bio Madeira. It supports most of the features of the original theme.
Contributing
Pull requests, bug fixes, and new features are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -a -m 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request on GitHub