lib/ruby_slippers/article.rb in ruby-slippers-0.1.7 vs lib/ruby_slippers/article.rb in ruby-slippers-0.1.11
- old
+ new
@@ -82,10 +82,10 @@
self[:body].length > self.summary.length
end
def read_more_link()
return "" unless has_more?
- "<div class=\"more-link\"><a href=\"<%= article.path %>\">read on »</a></div>"
+ "<div class=\"more-link\"><a href=\"#{article.path}\">read on »</a></div>"
end
def title() self[:title] || "an article" end
def date() @config[:date].call(self[:date]) end
def author() self[:author] || @config[:author] end