Sha256: ac7aa6b80eb7fffb6aca1577354aeea3c5fe98ef1a116a4b1be42f75b03c8942
Contents?: true
Size: 1.57 KB
Versions: 2
Compression:
Stored size: 1.57 KB
Contents
# These configuration options can be used to customise the behaviour of Blogit Blogit.configure do |config| # Do you want to add comments to your blog? config.include_comments = true # The name of the controller method we'll call to return the current blogger. # Change this if you use something other than current_user. # Eg. current_admin_user (if using ActiveAdmin) config.current_blogger_method = :current_user # What method do we call on blogger to show who they are? config.blogger_display_name_method = :username # Which DateTime::FORMATS format do we use to display blog and comment publish time config.datetime_format = :short # No. of posts to show per page config.posts_per_page = 5 # The name of the before filter we'll call to authenticate the current user. config.authentication_method = :login_required # If set to true, the comments form will POST and DELETE to the comments # controller using AJAX calls. config.ajax_comments = true # If set to true, the create, edit, update and destroy actions # will be included. If set to false, you'll have to set these # yourself elsewhere in the app. # @note - This is not currently implemented config.include_admin_actions = true # The default format for parsing the blog content. config.default_parser = :markdown # When using redcarpet as content parser, pass these options as defaults. # @see here for more options: https://github.com/tanoku/redcarpet config.redcarpet_options = [:hard_wrap, :filter_html, :autolink, :no_intraemphasis, :fenced_code, :gh_blockcode] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blogit-0.0.5 | lib/generators/templates/blogit.rb |
blogit-0.0.4 | lib/generators/templates/blogit.rb |