Skip to content

Commit

Permalink
Added textilization to posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
sam committed Oct 11, 2009
1 parent 9866306 commit be3565b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -7,7 +7,7 @@ require "rake/gempackagetask"

NAME = "captains_blog"
SUMMARY = "CaptainsBlog: Blog for Harbor Applications"
GEM_VERSION = "0.3.2"
GEM_VERSION = "0.3.3"

spec = Gem::Specification.new do |s|
s.name = NAME
Expand Down
3 changes: 3 additions & 0 deletions lib/captains_blog.rb
Expand Up @@ -14,6 +14,9 @@
gem "port_authority", ">= 1.0"
require "port_authority"

gem "redcloth"
require "redcloth"

class CaptainsBlog < Harbor::Application

require "captains_blog/router"
Expand Down
2 changes: 1 addition & 1 deletion lib/captains_blog/views/pages/index.html.erb
Expand Up @@ -19,7 +19,7 @@
</div>

<div class="content">
<%= post.content %>
<%= RedCloth.new(post.content).to_html %>
<div class="fixed"></div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion lib/captains_blog/views/pages/show_post.html.erb
Expand Up @@ -3,7 +3,7 @@
<% unless @post.byline.empty? %><p class="byline"><%= @post.byline %></p><% end %>

<div>
<%= @post.content %>
<%= RedCloth.new(@post.content).to_html %>
</div>

<%= render "pages/_comments" %>

0 comments on commit be3565b

Please sign in to comment.