Overview
The Sustain theme is a port of the Jekyll theme Sustain by Fábio Madeira. It is designed for use with Hugo, a static site generator. The theme supports most of the features of the original Jekyll theme and offers additional functionalities.
Features
- Syntax highlighting: Include highlight.js javascript and css files by setting
highlight = truein the front matter. - Disqus integration: Uncomment and fill out the
disqusShortnameparameter in theconfig.tomlfile to enable Disqus comments. - Google Analytics: Add Google Analytics to your site by signing up for your Google Tracking ID and adding it to the
googleAnalyticsparameter in theconfig.tomlfile. - Easy installation: Clone the theme repository or download the zip archive. Copy the theme files into your Hugo site’s
themesfolder. - Demo content: The theme includes an example setup with a demo configuration file and content, making it easy to get started quickly.
- Development server: Hugo includes a development server, allowing you to view your changes in real-time by running a command.
- Contributions welcome: The theme is open to contributions, including bug fixes, new features, and pull requests.
Installation
With git
- From the root of your Hugo site, clone the theme repository into
themes/hugo-sustainby running:
git clone https://github.com/{repository-name}/hugo-sustain.git themes/hugo-sustain
Manual
- Download the zip archive of the theme.
- Unarchive the file.
- Move the
hugo-sustainfolder into thethemesfolder of your Hugo site.
For more detailed installation instructions, refer to the official setup guide of Hugo.
Summary
The Sustain theme for Hugo offers an easy installation process and a variety of features, including syntax highlighting, Disqus integration, and Google Analytics support. It is a port of the original Jekyll theme and supports most of its features. The theme also includes example content and a development server for convenient development. Contributions to the theme are welcome, making it a versatile and customizable option for Hugo users.