1
0
Fork 0
forked from wezm/wezm.net

Use the extra key for excerpts

This commit is contained in:
Wesley Moore 2010-03-30 08:05:41 +11:00
parent 43a95d2014
commit e0409773b2
4 changed files with 4 additions and 4 deletions

View file

@ -7,6 +7,6 @@
</abbr>
<p>
<strong><a href="<%= @article.reps.first.path %>"><%= @article[:title] %></a></strong>
<%= @item[:summary] %>
<%= @article[:extra] %>
</p>
</li>

View file

@ -18,7 +18,7 @@ module WezM
:path => article.identifier,
:date => Time.parse(article[:created_at]).rfc2822,
:text => article[:title],
:extra => article[:excerpt] || " "
:extra => article[:extra] || " "
}
end

View file

@ -42,7 +42,7 @@ var WezM = {
</abbr>\n\
<p>\n\
<strong><a href="' + (Mojo.escape(Mojo.normalize(o.path))) + '">' + (Mojo.escape(Mojo.normalize(o.title))) + '</a></strong>\n\
' + (Mojo.escape(Mojo.normalize(o.summary))) + '\n\
' + (Mojo.normalize(o.summary)) + '\n\
</p>\n\
</li>';
},

View file

@ -6,6 +6,6 @@
</abbr>
<p>
<strong><a href="{{path}}">{{title}}</a></strong>
{{summary}}
{{{summary}}}
</p>
</li>