Example: hugo-encrypt /path/to/html/files
@@ -63,7 +63,8 @@ func encryptPage(path string) {
}
func main() {
- err := filepath.Walk("./public", func(path string, f os.FileInfo, err error) error {
+ sitePath := os.Args[1]
+ err := filepath.Walk(sitePath, func(path string, f os.FileInfo, err error) error {
if f == nil {
return err