Skip to content
This repository

Configuration

Initializer sample

In config/initializers/monologue.rb:

Version 0.4.X+

Major and important change starting with Monologue 0.4.0, configurations will be done with a config block. You need to change your previous configuration. It should not be a big deal. Here is an example (taken from the dummy app):

Monologue.config do |config|
  config.site_name = "@jipiboily / Jean-Philippe Boily"
  config.site_subtitle = "my own place online"
  config.site_url = "http://jipiboily.com"

  config.meta_description = "This is my personal blog about Rails, Monologue, programming, etconfig..."
  config.meta_keyword = "rails, programming, monologue, ruby"

  config.admin_force_ssl = false
  config.posts_per_page = 10

  config.disqus_shortname = "jipiboily"

  # LOCALE
  config.twitter_locale = "en" # "fr"
  config.facebook_like_locale = "en_US" # "fr_CA"
  config.google_plusone_locale = "en"

  # config.layout               = "layouts/application"

  # ANALYTICS
  # config.gauge_analytics_site_id = "YOUR COGE FROM GAUG.ES"
  # config.google_analytics_id = "YOUR GA CODE"

  config.sidebar = ["latest_posts", "latest_tweets", "categories", "tag_cloud"]


  #SOCIAL
  config.twitter_username = "jipiboily"
  config.facebook_url = "https://www.facebook.com/jipiboily"
  config.facebook_logo = 'logo.png'
  config.google_plus_account_url = "https://plus.google.com/u/1/115273180419164295760/posts"
  config.linkedin_url = "http://www.linkedin.com/in/jipiboily"
  config.github_username = "jipiboily"
  config.show_rss_icon = true

end

Version 0.2.0+

Monologue.sidebar              = ["latest_posts", "latest_tweets"]   # this will add the latests posts and latests tweets in the right sidebar.
Monologue.show_rss_icon        = true # will show the RSS icon (with link) in the header)
Monologue.facebook_url         = "https://www.facebook.com/jipiboilycom" # if set, this will enable Facebook icon and link it to your Facebook page.
Monologue.google_plus_account_url = "https://plus.google.com/115273180419164295760/posts" # if set, this will enable Google+ icon and link it to that URL.
Monologue.linkedin_url         = "http://www.linkedin.com/in/jipiboily" # if set, will enable Linked In icon and link to this URL.
Monologue.github_username      = "http://github.com/jipiboily"  # if set, will enable Github icon and link to this URL.
Monologue.gauge_analytics_site_id = "your-gaug.es-id-here" # add your [Gaug.es](http://get.gaug.es/) id here to enable it.
Monologue.facebook_logo           = 'logo.png'  # used in the open graph protocol to display an image when a post is liked

Also, starting from 0.2, you might need to configure some cache stuff here.

See wiki here.

Version 0.1.1+

Monologue.layout               = "layouts/monologue/application" # set the layout you want to use if you want to use your main_app layout

Version 0.1.0+

Monologue.site_name            = "This is my blog"
Monologue.site_subtitle        = "I write about..."
Monologue.site_url             = "http://example.com"
Monologue.disqus_shortname     = "example_disqus_username" # register on disqus.com if you don't have one
Monologue.meta_description     = "This is the description that will be seen on Google by default for the main page"
Monologue.meta_keyword         = "those, are, meta, key, words, that, you, should, enter, comma, delimited, just, like, this"
Monologue.twitter_username     = "twitter_user_name"
Monologue.twitter_locale       = "en" # This is the locale for twitter. "en" for english or "fr" for french. There is much more!
Monologue.facebook_like_locale = "en_US" # same, but for facebook. French is "fr_CA"
Monologue.google_plusone_locale = "en" # same for Google +
Monologue.admin_force_ssl       = true # that can be set to false if you don't have SSL, but it is not recommended
Monologue.posts_per_page      = 5 # OPTIONAL: number of posts per page on main page. It defaults to 10 currently
Monologue.google_analytics_id  = "GA-CODE-HERE" # OPTIONAL: Your Google Analytics code should be here if you have one.
Something went wrong with that request. Please try again.