Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Handle symlink change event #2273
Hugo 0.16 announced support for symbolic links for the root folders, /content, /static etc., but this got broken pretty fast.
The main problem this commit tries to solve is the matching of file change events to "what changed".
ContentDir: /mysites/site/content where /mysites/site/content is a symlink to /mycontent
The first change will not trigger a correct update of Hugo before this commit. This commit fixes this by doing a two-step check: