1
0
Fork 0
forked from wezm/wezm.net

Remove JSON duplication in articles helper

This commit is contained in:
Wesley Moore 2010-03-12 07:11:58 +11:00
parent 7f3a8839a9
commit 696cdf3968
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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);