graylog-labs / blogit

A mountable Rails blogging engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gem Version Code Climate Test Coverage Blogit Travis CI Bitdeli Badge

Blogit - A Rails blogging solution

Blogit lets you add a blog to your Ruby on Rails application in just a few seconds.

Installation

Add these to your Gemfile

gem "blogit"
# Blogit depends on ActsAsTaggableOn
gem "acts-as-taggable-on"

...and run bundle install to install the gem.

Next, run:

# add an initializer to config/initializers with all of the configuration options
$ rails g blogit:install

# This will add the necessary migrations to your app's db/migrate directory
rake blogit:install:migrations

# You don't need to run this again if you've already done so
rake acts_as_taggable_on:install:migrations

# This will run any pending migrations
rake db:migrate

then add the following to your routes.rb file:

# config/routes.rb
mount Blogit::Engine => "/blog"

Finally, declare which of your models acts as blogger in your app (probably User or Admin).

class User < ActiveRecord::Base
  
  blogs

end

Go to http://localhost:3000/blog and see your marvelous new blog.

Batteries included

Blogit provides you with the following features

  • An XML Sitemap located at /blog/posts.xml
  • An RSS feed located at /blog/posts.rss
  • Internationalization (see the locales file for configurable options)
  • Share links (Google+, Twitter & Facebook)
  • Disquss Comments
  • Code Syntax Highlighting CSS file (add *= require pygments to your app's stylesheet)
  • CSS themes

Documentation

Full documentation and how-to guides available here: http://blogit.katanacode.com

Issues

If you discover a problem with Blogit, please let us know about it.

Remember to search the issues list first in case your issue has already been raised by another Githuber

Contributing

Want to help make Blogit better?. Please read the contribution guidelines for more information on how you can contribute.

Legal Stuff

See LEGAL for full details.

Credits

Blogit was developed by Katana Code with generous contributions from:

About Katana Code

Katana Code are web developers based in Edinburgh, Scotland.

Copyright © 2011 - 2015 Katana Code Ltd.

About

A mountable Rails blogging engine

License:MIT License


Languages

Language:Ruby 79.6%Language:HTML 15.2%Language:CSS 5.0%Language:JavaScript 0.2%