Skip to content

Commit

Permalink
Updated readme with RSS Feed information and usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelkane committed May 3, 2011
1 parent 39ab89b commit 43e8961
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions readme.md
Expand Up @@ -42,6 +42,23 @@ The easiest way to customize the Postmarkdown functionality or appearance is by
$ rails generate postmarkdown:override --model # overrides `app/models/post.rb`
$ rails generate postmarkdown:override --views # overrides all files in directory `app/views/posts/`

## RSS Feed

Postmarkdown comes prepared with a fully functional RSS feed.

You can take advantage of the built-in feed by adding the feed link to your HTML head tag. For example, simply add the following to your default layout:

<head>
<!-- include your stylesheets and javascript here... -->
<%= yield :head %>
</head>

To customize the feed title, add the following to your application.rb:

Postmarkdown::Config.options[:feed_title] = 'Custom Blog Title Goes Here'

To link to the feed in your app, simply use the route helper: `<%= link_to 'RSS Feed', posts_feed_path %>`

## Customizing Routes

By default Postmarkdown will setup all routes to go through the `/posts/*` path. For example:
Expand Down

0 comments on commit 43e8961

Please sign in to comment.