mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
Remove JSON duplication in articles helper
This commit is contained in:
parent
7f3a8839a9
commit
696cdf3968
2 changed files with 2 additions and 3 deletions
|
@ -17,9 +17,8 @@ module WezM
|
|||
:title => article[:title],
|
||||
:path => article.identifier,
|
||||
:date => Time.parse(article[:created_at]).rfc2822,
|
||||
:summary => article[:summary],
|
||||
:text => article[:title],
|
||||
:extra => article[:summary]
|
||||
:extra => article[:excerpt] || " "
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ var WezM = {
|
|||
year: date.getYear() + 1900,
|
||||
path: article.path,
|
||||
title: article.title,
|
||||
summary: article.summary
|
||||
summary: article.extra
|
||||
};
|
||||
var li = this._renderArticle(article_view);
|
||||
container.append(li);
|
||||
|
|
Loading…
Reference in a new issue