'source' directory #75

Closed
solars opened this Issue Aug 7, 2009 · 4 comments

Projects

None yet

5 participants

@solars
solars commented Aug 7, 2009

Hi,

Wouldn't it make sense to set site.source to the absolute path of the dir where the jekyll command is run (if no config['site'] is specified).

I had some templates where it complained about non existing ./_includes - not sure when exactly though - until I specified the source dir in my config.

@qrush
Contributor
qrush commented Aug 8, 2009

Hmm, this probably makes sense. If you could whip up a patch or a good way to test this I'd be up for it.

@christianhellsten
Contributor

This is easy to fix. I had problems using includes from within includes (in the _includes directory).

I fixed this issue by changing line 38 in http://github.com/mojombo/jekyll/blob/master/lib/jekyll.rb from:
'source' => '.',
to:
'source' => Dir.pwd,

This change breaks ./test/test_configuration.rb. To fix the test change line 6 in test_configuration.rb to:

 @path = File.join(Dir.pwd, '_config.yml')

I can create a patch if required.

@mojombo
Contributor
mojombo commented Jun 22, 2010

If you're still up for making a patch and test for this, that would be awesome.

@mojombo
Contributor
mojombo commented Jun 22, 2010

This is fixed in master.

@jekyllbot jekyllbot locked and limited conversation to collaborators Feb 27, 2017
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.