https://github.com/fdv/typo-sliding-posts
A sliding post plugins to display featured content in a nice carousel
https://github.com/fdv/typo-sliding-posts
Last synced: 8 months ago
JSON representation
A sliding post plugins to display featured content in a nice carousel
- Host: GitHub
- URL: https://github.com/fdv/typo-sliding-posts
- Owner: fdv
- License: mit
- Created: 2009-10-10T21:24:45.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2010-10-02T21:54:50.000Z (over 15 years ago)
- Last Synced: 2024-12-31T03:12:44.945Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
- License: MIT-LICENSE
Awesome Lists containing this project
README
h1. Typo Sliding Posts
This plugin is – obviously – a carousel for Typo, the famous Ruby on Rails blogging system avaliable at http://typosphere.org
Typo carousel displays featured posts at the topcontent on your blog homepage grabbing pictures from the post.
h2. Installing Typo Sliding Posts
To use Typo Sliding Posts, you'll need to download and install Hpricot. Hpricot is a cool HTML parsing library. Install the gem if you don't have it yet.
Installing Typo Sliding Posts is pretty easy :
./script/plugins install git://github.com/fdv/typo-sliding-posts.git
Then, edit your template, and add this to your articles index view (should be views/articles/index.html.erb) and add the following:
<%= render_sliding_posts(@articles) %>
You're done!
Now, everytime you want to display some featured content on your blog, just add a picture into your post, using the 'carousel' class:
Typo Sliding Posts will take care of everything else.
Copyright (c) 2009 Frédéric de Villamil, released under the MIT license