lib/troy/site.rb in troy-0.0.27 vs lib/troy/site.rb in troy-0.0.28

- old
+ new

@@ -76,11 +76,10 @@ sprockets = Sprockets::Environment.new sprockets.append_path root.join("assets/javascripts") sprockets.append_path root.join("assets/stylesheets") sprockets.css_compressor = Sprockets::SassCompressor if config.assets.compress_css sprockets.js_compressor = Uglifier.new(copyright: false) if config.assets.compress_js - sprockets.default_external_encoding = Encoding::UTF_8 config.assets.precompile.each do |asset_name| asset = sprockets[asset_name] output_file = asset.pathname.to_s .gsub(root.join("assets").to_s, "") @@ -93,10 +92,10 @@ end # # def source - Dir[root.join("source/**/*.{html,erb,md,builder,xml}").to_s] + Dir[root.join("source/**/*.{html,erb,md,builder,xml,txt}").to_s] end # Return all pages wrapped in Troy::Page class. # def pages