naeu-jekyll 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -1
- data/lib/jekyll.rb +2 -2
- data/lib/jekyll/tags/include.rb +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/jekyll.rb
CHANGED
@@ -30,12 +30,12 @@ require 'jekyll/albino'
|
|
30
30
|
module Jekyll
|
31
31
|
# Default options. Overriden by values in _config.yml or command-line opts.
|
32
32
|
# (Strings rather symbols used for compatability with YAML)
|
33
|
+
|
33
34
|
DEFAULTS = {
|
34
35
|
'auto' => false,
|
35
36
|
'server' => false,
|
36
37
|
'server_port' => 4000,
|
37
|
-
|
38
|
-
'source' => '.',
|
38
|
+
'source' => File.expand_path('.'),
|
39
39
|
'destination' => File.join('.', '_site'),
|
40
40
|
|
41
41
|
'lsi' => false,
|
data/lib/jekyll/tags/include.rb
CHANGED
@@ -11,7 +11,7 @@ module Jekyll
|
|
11
11
|
return "Include file '#{@file}' contains invalid characters or sequences"
|
12
12
|
end
|
13
13
|
|
14
|
-
Dir.chdir(File.join(
|
14
|
+
Dir.chdir(File.join(Jekyll::DEFAULTS['source'], '_includes')) do
|
15
15
|
choices = Dir['**/*'].reject { |x| File.symlink?(x) }
|
16
16
|
if choices.include?(@file)
|
17
17
|
source = File.read(@file)
|