Skip to content

Commit

Permalink
Add a message to show the sources path for debugging. Fixes #246
Browse files Browse the repository at this point in the history
  • Loading branch information
tdreyno committed Mar 2, 2015
1 parent ae51fe4 commit 1fd21a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/middleman-blog/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

module Middleman
class BlogExtension < Extension
delegate :logger, to: :app
self.supports_multiple_instances = true

option :name, nil, 'Unique ID for telling multiple blogs apart'
Expand Down Expand Up @@ -142,6 +143,8 @@ def after_configuration
@paginator = Blog::Paginator.new(@app, self)
@app.sitemap.register_resource_list_manipulator(:"blog_#{name}_paginate", @paginator, false)
end

logger.info "== Blog Sources: #{options.sources} (:prefix + :sources)"
end

private
Expand Down

0 comments on commit 1fd21a8

Please sign in to comment.