mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-19 02:39:54 +00:00
Use the extra key for excerpts
This commit is contained in:
parent
43a95d2014
commit
e0409773b2
4 changed files with 4 additions and 4 deletions
|
@ -7,6 +7,6 @@
|
||||||
</abbr>
|
</abbr>
|
||||||
<p>
|
<p>
|
||||||
<strong><a href="<%= @article.reps.first.path %>"><%= @article[:title] %></a></strong>
|
<strong><a href="<%= @article.reps.first.path %>"><%= @article[:title] %></a></strong>
|
||||||
<%= @item[:summary] %>
|
<%= @article[:extra] %>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -18,7 +18,7 @@ module WezM
|
||||||
:path => article.identifier,
|
:path => article.identifier,
|
||||||
:date => Time.parse(article[:created_at]).rfc2822,
|
:date => Time.parse(article[:created_at]).rfc2822,
|
||||||
:text => article[:title],
|
:text => article[:title],
|
||||||
:extra => article[:excerpt] || " "
|
:extra => article[:extra] || " "
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ var WezM = {
|
||||||
</abbr>\n\
|
</abbr>\n\
|
||||||
<p>\n\
|
<p>\n\
|
||||||
<strong><a href="' + (Mojo.escape(Mojo.normalize(o.path))) + '">' + (Mojo.escape(Mojo.normalize(o.title))) + '</a></strong>\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\
|
</p>\n\
|
||||||
</li>';
|
</li>';
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
</abbr>
|
</abbr>
|
||||||
<p>
|
<p>
|
||||||
<strong><a href="{{path}}">{{title}}</a></strong>
|
<strong><a href="{{path}}">{{title}}</a></strong>
|
||||||
{{summary}}
|
{{{summary}}}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue