exclude assets directory from galleries
This commit is contained in:
parent
d66bc205db
commit
cc6ff3f524
|
@ -153,7 +153,7 @@ module Jekyll
|
|||
begin
|
||||
Dir.foreach(dir) do |gallery_dir|
|
||||
gallery_path = File.join(dir, gallery_dir)
|
||||
if File.directory?(gallery_path) and gallery_dir.chars.first != "."
|
||||
if File.directory?(gallery_path) and gallery_dir.chars.first != "." and gallery_dir != "assets"
|
||||
gallery = GalleryPage.new(site, site.source, gallery_path, gallery_dir)
|
||||
gallery.render(site.layouts, site.site_payload)
|
||||
gallery.write(site.dest)
|
||||
|
@ -172,4 +172,4 @@ module Jekyll
|
|||
site.pages << gallery_index
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue