hugo/helpers
Bjørn Erik Pedersen 364e69ab7f Handle symlink change event
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".

An example:

ContentDir: /mysites/site/content where /mysites/site/content is a symlink to /mycontent

/mycontent:

/mypost1.md
/post/mypost2.md

* A change to mypost1.md (on OS X) will trigger a file change event with name "/mycontent/mypost1.md"
* A change to mypost2.md gives event with name "/mysites/site/content/mypost2.md"

The first change will not trigger a correct update of Hugo before this commit. This commit fixes this by doing a two-step check:

1. Check if "/mysites/site/content/mypost2.md" is within /mysites/site/content
2. Check if  "/mysites/site/content/mypost2.md" is within the real path that /mysites/site/content points to

Fixes #2265
Closes #2273
2016-09-11 20:00:38 +02:00
..
configProvider.go Make it possible to configure Blackfroday per language 2016-09-06 18:32:17 +03:00
content.go Add TODO list support for Blackfriday 2016-09-09 13:08:20 +02:00
content_renderer.go Add TODO list support for Blackfriday 2016-09-09 13:08:20 +02:00
content_renderer_test.go Add TODO list support for Blackfriday 2016-09-09 13:08:20 +02:00
content_test.go Multilingual TODO-fixes, take 1 2016-09-06 18:32:18 +03:00
emoji.go helpers: Fix bug in emoji renderer 2016-08-30 00:34:48 +02:00
emoji_test.go helpers: Fix bug in emoji renderer 2016-08-30 00:34:48 +02:00
general.go Reset the i18n func map on reload 2016-09-08 17:18:11 +03:00
general_test.go helpers: Remove ToReader funcs 2016-06-25 17:57:05 -05:00
hugo.go Make it the DEV version 2016-09-06 23:20:59 +03:00
hugo_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
language.go Small adjustment to SiteInfo init 2016-09-06 18:32:20 +03:00
path.go Handle symlink change event 2016-09-11 20:00:38 +02:00
path_test.go Handle symlink change event 2016-09-11 20:00:38 +02:00
pygments.go helpers: Ignore cache for Pygments when flag set 2016-04-10 20:55:57 +02:00
pygments_test.go Apply gofmt -s 2016-02-06 13:09:52 +01:00
url.go Fix YAML loading of multilingual config 2016-09-06 18:32:20 +03:00
url_test.go Render main content language in root by default 2016-09-06 18:32:18 +03:00