Hugo: Batch script to deploy to GitHub after cleaning the output public dir (static-site's root)
Following the “2 repo” approach of hugo site as described in previous post How to create Hugo Blog hosted on GitHub: First repo for hugo-project Second repo for the static site (public dir in hugo project is created as git submodule I came across this approach first here. When using this approach, I tried to do cleanup of public directory after some inital builds, because in previous builds they were many folders and files created which I no longer wanted to be present on root of generated site(these were things like multiple folders for images - later I wanted to put all images under single directory), but in subsequent builds using hugo command these files and directories were not getting removed....