Boilerplate to start fast with hugo
CSS HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
archetypes Remove Hyde-Y submodule Aug 26, 2015
content Update Hyde-Y Sep 14, 2015
data update Hyde-Y Sep 13, 2015
layouts/partials Release v0.0.2 Sep 14, 2015
static Init repository Aug 24, 2015
themes/hyde-y Update Hyde-Y Sep 22, 2015
.gitignore Release v0.0.2 Sep 14, 2015
LICENSE Init repository Aug 24, 2015
README.md Update Hyde-Y Sep 14, 2015
VERSION Release v0.0.1 Aug 24, 2015
config.toml Revert "Update baseurl" Jul 28, 2016
package.json deploy:gh script use https instead of http Jul 28, 2016

README.md

Hugo Boilerplate

Boilerplate to start fast with Hugo.

Demo

Screenshot

preview

Requirements

## Installation

# clone hugo-boilerplate into new project folder
git clone https://github.com/enten/hugo-boilerplate awesome-site

# remove origin repository (enten/hugo-boilerplate)
cd awesome-site
git remote remove origin

# start hugo development server
npm run server

Watching for changes in /home/steven/code/hugo-boilerplate/{data,content,layouts,static,themes/hyde-y}
Serving pages from /home/steven/code/hugo-boilerplate/public
Web Server is available at http://127.0.0.1:1313/hugo-boilerplate/
Press Ctrl+C to stop

Deployment

GitHub Pages

cd awesome-site

# check hugo configuration
vi config.toml

# configure origin repository
git remote add origin https://github.com/<USERNAME>/<REPONAME>

# run deployment task
npm run deploy:gh

Warnings :

FTP

cd awesome-site

# check hugo configuration
vi config.toml

# create ftp configuration
echo '{
  "host": "ftp.example.com",
  "port": 21,
  "remote": "/www",
  "user": "*****",
  "pass": "*****"
}' > ftp-config.json

# edit ftp configuration
vi ftp-config.json

# run deployment task
npm run deploy

Warnings :

  • remote folder must exists on the host
  • BUG: several attempts are needed to deploy all files

License

Open sourced under the MIT license.