Skip to content

Instantly share code, notes, and snippets.

@hemc4
Created February 11, 2017 09:54
Show Gist options
  • Save hemc4/625aa141a80a45682f6085e77350f655 to your computer and use it in GitHub Desktop.
Save hemc4/625aa141a80a45682f6085e77350f655 to your computer and use it in GitHub Desktop.
hugo npm build
#!/bin/bash
# delete everything in public except .git
find public -path public/.git -prune -o -exec rm -rf {} \; 2> /dev/null
# Build a fresh copy
hugo -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment