0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

rename helpers paginate -> pagination, dateFormat -> date

closes #381

- renamed entries for dateFormat in helpers to date
- renamed entries for paginate in helpers  and unit tests to pagination
This commit is contained in:
cobbspur 2013-08-22 20:42:54 +01:00
parent 08124442cd
commit d1af144f52
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
*/
(function () {
"use strict";
Handlebars.registerHelper('dateFormat', function (context, block) {
Handlebars.registerHelper('date', function (context, block) {
var f = block.hash.format || "MMM Do, YYYY",
timeago = block.hash.timeago,
date;

View file

@ -3,7 +3,7 @@
<section class="entry-meta">
<time datetime="2013-01-04" class="date">
{{#if published}}
Published {{dateFormat published_at timeago="True"}}
Published {{date published_at timeago="True"}}
{{else}}
<span class="status-draft">Draft</span>
{{/if}}