https://github.com/smashingboxes/cardboard_blog
https://github.com/smashingboxes/cardboard_blog
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/smashingboxes/cardboard_blog
- Owner: smashingboxes
- License: mit
- Created: 2013-05-17T20:08:04.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-05-12T13:54:43.000Z (almost 12 years ago)
- Last Synced: 2025-01-03T18:12:38.723Z (over 1 year ago)
- Language: Ruby
- Size: 330 KB
- Stars: 0
- Watchers: 33
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Cardboard Blog
## Usage
```ruby
#Gemfile
gem 'cardboard_cms', git: 'git@github.com:smashingboxes/cardboard.git'
gem 'cardboard_blog', git: 'git@github.com:smashingboxes/cardboard_blog.git'
```
```bash
rake cardboard_blog:install:migrations
rake db:migrate
```
Then in your `cardboard.css.scss` add
```css
@import "cardboard/blog";
```
### Statistics
We provide hooks for `impressionist` gem
```
rails g impressionist
rake db:migrate
```
Then in your blog controller
```ruby
def show
@post = Cardboard::Blog::Post.find(params[:id])
impressionist(@post)
end
```
This project rocks and uses MIT-LICENSE.