Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Boilerplate to start fast with hugo

Resources

License

Releases

No releases published
You can’t perform that action at this time.