Hugo Skeleton is a supersimple theme for rapid website development with Hugo, SASS and gulp.
Look how easy it is to use:
$ gulp
- Layout templates based on HTML5 Boilerplate.
- Simple gulp workflow:
- SASS Transpiler, Autoprefixer and Minifier.
- JS Linter and Minifier.
- Watch by default
- Boilerplate for SASS code organization inspired by the Sass Guidelines project.
- No over-engineering.
- You want to quickly create websites or prototypes.
- You think Hugo is really good at generating static sites but lacks an asset pipeline.
- You are comfortable with Gulp as a task runner but don't want to spend too much time configuring it.
- You favor SASS over another transpiler to generate CSS. You also understand the importance of proper SCSS organization.
Please make sure that you have npm
installed and updated.
- Use the installation instructions in the Hugo documentation to install Hugo.
- Clone this project into your
themes/
directory. cd
intothemes/hugo-skeleton
and runnpm install
.- Optional: Add
theme = "hugo-skeleton"
to your config.toml, so you don't have to pass the theme name as a command line argument.
Instructions are based on a standard Hugo installation.
- Run
hugo server --verbose
. Verbose flag is highly recommended for debugging purposes. - Run
gulp
. - Enjoy.
The project follows the structure when creating a new Hugo theme. You should be familiar with the files when you finished the (excellent) tutorial. Additionally there is a src
folder which contains all the JS and SCSS source files and some configuration files.
├── ...
├── layouts/ # Layout files based on HTML5 Boilerplate
├── src/ # JS and CSS source...
├── static/ # ... gets compiled into static
├── ...
├── gulpfile.js # Gulp Config
└── ...
The MIT License (MIT)
Copyright (c) 2016 Savio van Hoi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Thanks to all the hard working and smart people out there who constantly push the edge of technology.