mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 18:29:54 +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],
|
:title => article[:title],
|
||||||
:path => article.identifier,
|
:path => article.identifier,
|
||||||
:date => Time.parse(article[:created_at]).rfc2822,
|
:date => Time.parse(article[:created_at]).rfc2822,
|
||||||
:summary => article[:summary],
|
|
||||||
:text => article[:title],
|
:text => article[:title],
|
||||||
:extra => article[:summary]
|
:extra => article[:excerpt] || " "
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ var WezM = {
|
||||||
year: date.getYear() + 1900,
|
year: date.getYear() + 1900,
|
||||||
path: article.path,
|
path: article.path,
|
||||||
title: article.title,
|
title: article.title,
|
||||||
summary: article.summary
|
summary: article.extra
|
||||||
};
|
};
|
||||||
var li = this._renderArticle(article_view);
|
var li = this._renderArticle(article_view);
|
||||||
container.append(li);
|
container.append(li);
|
||||||
|
|
Loading…
Reference in a new issue