lib/octopress-ink/plugin.rb in octopress-ink-1.0.0.alpha.41 vs lib/octopress-ink/plugin.rb in octopress-ink-1.0.0.alpha.42
- old
+ new
@@ -272,10 +272,14 @@
def add_pages
@pages = add_new_assets(@pages_dir, Assets::PageAsset)
end
def add_docs
- @docs = add_new_assets(@docs_dir, Assets::DocPageAsset)
+ find_assets(@docs_dir).each do |asset|
+ unless asset =~ /^_/
+ @docs << Assets::DocPageAsset.new(self, @docs_dir, asset)
+ end
+ end
end
def add_files
@files = add_new_assets(@files_dir, Assets::FileAsset)
end