This is a fork of https://github.com/nurlansu/hugo-sustain
- Remove anti-features
- Google Analytics
- Add a "burger menu" for small screens
- Add comments via free & distributed social networks instead of Disqus
- Add "share on social network"-buttons for blog posts
- Add a nice and elegant way to add slides directly to your blog post (the example page contains a example article)
- Add content from a Atom feed to the index page and rotate it, e.g. to show you latest posts on GNU Social, Mastodon or anything else with a Atom feed
- Some small visual improvements
Table of Contents
- Quick start
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
- Download zip archive.
- Unarchive it.
themesfolder of your blog
For more information read the official setup guide of Hugo.
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:
Now you can go to localhost:1313 and the Sustain theme should be visible.
highlight = true in the front matter to include
To use this feature, uncomment and fill out the
disqusShortname parameter in config.toml`.
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
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
- Added proper "Projects" page rendering
- Fixes, many fixes
- Initial release