Helpful scripts for Hugo
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
release
src
LICENSE
README.md

README.md

hugo-scripts

Helpful scripts for Hugo

Directories

  • bin/ - these helpful scripts
  • src/ - your hugo site source
  • release/ - packaged site destination

Scripts

bin/create-blog.sh

Usage: bin/create-blog.sh [-d YYYYMMDD] <filename.md>

Creates a new empty draft blog post and related static content directory. Defaults to current date if not specified.

  • content/blog/YYYYMMDD/filename.md
  • static/blog/YYYYMMDD/

bin/package-site.sh

Usage: bin/package-site.sh

Regenerate content in src/public, packaging as a gzipped tar archive.

bin/deploy-site.sh

Usage: bin/deploy-site.sh <file.tar.gz>

Deploy a gzipped archive contents to a specified directory.