Go to file
2018-08-04 12:42:35 +07:00
archetypes Archetype fix 2017-01-25 10:34:45 +01:00
exampleSite Expand social networks partial 2017-04-10 00:45:14 +05:00
images 😉 This is where it all begins... 2016-10-22 09:20:15 +02:00
layouts Merge pull request #20 from calebdavenport/fixes 2018-08-04 12:42:35 +07:00
static Merge pull request #20 from calebdavenport/fixes 2018-08-04 12:42:35 +07:00
LICENSE.md 😀 Updated LICENSE.md 2017-02-12 00:21:06 +01:00
README.md Add missing backtick in README 2017-06-25 15:42:13 -06:00
theme.toml 🐶 Fixed broken links 2017-01-18 14:40:54 +01:00

Sustain - Logo

Table of Contents


Sustain Screen


Sustain Live Demo

Installation

With git

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

  1. Download zip archive.
  2. Unarchive it.
  3. Move hugo-sustain folder in themes 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!

  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

Changelog

Version 1.0.1

  • Added proper "Projects" page rendering
  • Fixes, many fixes

Version 1.0

  • Initial release

License

MIT