exclude assets directory from galleries
This commit is contained in:
parent
d66bc205db
commit
cc6ff3f524
|
@ -153,7 +153,7 @@ module Jekyll
|
||||||
begin
|
begin
|
||||||
Dir.foreach(dir) do |gallery_dir|
|
Dir.foreach(dir) do |gallery_dir|
|
||||||
gallery_path = File.join(dir, 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 = GalleryPage.new(site, site.source, gallery_path, gallery_dir)
|
||||||
gallery.render(site.layouts, site.site_payload)
|
gallery.render(site.layouts, site.site_payload)
|
||||||
gallery.write(site.dest)
|
gallery.write(site.dest)
|
||||||
|
|
Loading…
Reference in New Issue