Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_scripts: do not render serve to disk
This ensures we don't have any removed artefacts lying around when hugo serves its content. This can happen if we remove a page, which then (via runPreprocessor.bash) gets removed from hugo/content, but the contents of _public can still linger around between serve invocations, because hugo does not remove them by default. Also remove _public along with hugo/content when running the preprocessor in execute (non-serve) mode, to ensure we really don't leave any artefacts lying around when we publish the site. Signed-off-by: Paul Jolly <[email protected]> Change-Id: I6a1a5896fc8cdf5bc7c3c031cafdc0bf9533812f Dispatch-Trailer: {"type":"trybot","CL":1169678,"patchset":1,"ref":"refs/changes/78/1169678/1","targetBranch":"alpha"}
- Loading branch information