thunderrabbit/hakyll-journal — pull request #1 by TravisCardwell (2014-11-02 00:48:49+00:00)
Title: Travis

Upon reading your "Now I can compile my site from anywheres" comment, I
realized that there is a caveat. You can now *execute* the "site" program
from anywhere, since it is in your PATH, but the build does not work from
anywhere because Hakyll looks for the "match" resources in the current
working directory. In fact, running the "site build" from a different
directory (not "$HOME/journal") is problematic because it recursively
traverses the directory to determine resources!

I wrote a simple fix in my test version: change to the project directory
before calling "hakyll". The downside to doing this is that it makes the
journal source non-portable, but I doubt that is a big concern, and I read
the HOME environment variable to at least make it portable between OS X
and Linux.

Sending you an email with a list of required changes is not an effective
way to communicate code, so I forked your repo so that I could make the
changes and show you via a diff. I decided to clean up the code first. ;)