Refinements
This commit is contained in:
parent
11917645f2
commit
842470b0c4
|
@ -14,3 +14,4 @@ coverage
|
||||||
.ruby-version
|
.ruby-version
|
||||||
.sass-cache
|
.sass-cache
|
||||||
tmp/stackprof-*
|
tmp/stackprof-*
|
||||||
|
.jekyll-metadata
|
||||||
|
|
|
@ -17,7 +17,7 @@ module Jekyll
|
||||||
# Handling Reading
|
# Handling Reading
|
||||||
'safe' => false,
|
'safe' => false,
|
||||||
'include' => ['.htaccess'],
|
'include' => ['.htaccess'],
|
||||||
'exclude' => [],
|
'exclude' => ['.jekyll-metadata'],
|
||||||
'keep_files' => ['.git','.svn'],
|
'keep_files' => ['.git','.svn'],
|
||||||
'encoding' => 'utf-8',
|
'encoding' => 'utf-8',
|
||||||
'markdown_ext' => 'markdown,mkdown,mkdn,mkd,md',
|
'markdown_ext' => 'markdown,mkdown,mkdn,mkd,md',
|
||||||
|
|
|
@ -62,10 +62,10 @@ module Jekyll
|
||||||
|
|
||||||
# Add a dependency of a path
|
# Add a dependency of a path
|
||||||
#
|
#
|
||||||
# Returns true.
|
# Returns nothing.
|
||||||
def add_dependency(path, dependency)
|
def add_dependency(path, dependency)
|
||||||
@metadata[path]["deps"] << dependency unless @metadata[path]["deps"].include? dependency
|
@metadata[path]["deps"] << dependency unless @metadata[path]["deps"].include? dependency
|
||||||
add(dependency)
|
regenerate? dependency
|
||||||
end
|
end
|
||||||
|
|
||||||
# Write the metadata to disk
|
# Write the metadata to disk
|
||||||
|
|
|
@ -2,4 +2,3 @@ _site/
|
||||||
*.swp
|
*.swp
|
||||||
pkg/
|
pkg/
|
||||||
test/
|
test/
|
||||||
.jekyll-metadata
|
|
||||||
|
|
Loading…
Reference in New Issue