Skip to content

Commit

Permalink
Use weblog.expand_path entry.id instead of entry.link. This works ass…
Browse files Browse the repository at this point in the history
…uming

that weblog.expand_path behavious correctly with respect to, for example,
the replicate plugin.

This is the only place I could find where links were created directly using
entry.link instead of relative ones.
  • Loading branch information
paulvt committed Sep 8, 2006
1 parent 74aa7f5 commit e6860f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/hobix/out/quick.rb
Expand Up @@ -228,7 +228,8 @@ def entry_content_erb
%{ <div class="entryContent"><%= entry.content.to_html %></div> }
end
def entry_footer_erb
%{ posted by <%= weblog.authors[entry.author]['name'] %> | <a href="<%= entry.link %>"><%= entry.created.strftime( "%I:%M %p" ) %></a> }
%{ posted by <%= weblog.authors[entry.author]['name'] %> |
<a href="<%= weblog.expand_path entry.id %>"><%= entry.created.strftime( "%I:%M %p" ) %></a> }
end
def head_tags_erb; end
def css_erb; %{ @import "<%= weblog.expand_path "site.css" %>"; }; end
Expand Down Expand Up @@ -276,7 +277,7 @@ def entry_content_erb
%{ <div class="entryContent">
<% if entry.respond_to? :summary and entry.summary %>
<%= entry.summary.to_html %>
<p><a href="<%= entry.link %>">Continue to full post.</a></p>
<p><a href="<%= weblog.expand_path entry.id %>">Continue to full post.</a></p>
<% else %>
<%= entry.content.to_html %>
<% end %>
Expand All @@ -289,7 +290,7 @@ def extension
"quick-archive"
end
def entry_erb
%{ <h3 class="entryTitle"><a href="<%= entry.link %>"><%= entry.title %></a></h3> }
%{ <h3 class="entryTitle"><a href="<%= weblog.expand_path entry.id %>"><%= entry.title %></a></h3> }
end
def entries_erb
%{ <div id="archives">
Expand Down

0 comments on commit e6860f0

Please sign in to comment.