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:
parent
08124442cd
commit
d1af144f52
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
*/
|
*/
|
||||||
(function () {
|
(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
Handlebars.registerHelper('dateFormat', function (context, block) {
|
Handlebars.registerHelper('date', function (context, block) {
|
||||||
var f = block.hash.format || "MMM Do, YYYY",
|
var f = block.hash.format || "MMM Do, YYYY",
|
||||||
timeago = block.hash.timeago,
|
timeago = block.hash.timeago,
|
||||||
date;
|
date;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<section class="entry-meta">
|
<section class="entry-meta">
|
||||||
<time datetime="2013-01-04" class="date">
|
<time datetime="2013-01-04" class="date">
|
||||||
{{#if published}}
|
{{#if published}}
|
||||||
Published {{dateFormat published_at timeago="True"}}
|
Published {{date published_at timeago="True"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="status-draft">Draft</span>
|
<span class="status-draft">Draft</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue