0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/helpers
David Balderston c55140d0db Change default setting for to inside foreach helper
closes #6604

* Default for `to` was always `(from-1) + limit`. This caused a problem
where the `to` value could be higher than the length of the number of
blog posts, causing `@last` to never be called/reached
* Now sets `to` to have a default of `length` and if a limit was sent
through and not higher than `length`, to then set `to` to that value
* Added some extra tests for `@last` and `@first` use cases
* Added some inline commenting
2016-03-17 17:52:38 -07:00
..
tpl Add aria-hidden to the pagination arrows 2015-11-18 13:54:33 -06:00
asset.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
author.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
body_class.js Remove filters from theme helpers (no async) 2015-12-08 14:35:04 +00:00
content.js
date.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
encode.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
excerpt.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
foreach.js Change default setting for to inside foreach helper 2016-03-17 17:52:38 -07:00
get.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
ghost_foot.js Remove auto-inclusion of jQuery via ghost_foot 2015-09-02 13:39:22 +01:00
ghost_head.js Fix facebook/twitter/schema description 2016-02-18 12:11:46 +00:00
has.js Harvest server side strings 2015-12-19 12:12:16 +01:00
image.js Change url and image into synchronous helpers 2014-12-29 18:44:15 +00:00
index.js Merge pull request #6070 from kevinkucharczyk/harvesting-server-side-strings 2016-01-12 20:04:53 +00:00
input_password.js rewrites default private.hbs for new zelda styles 2015-05-29 06:25:32 -06:00
is.js Harvest server side strings 2015-12-19 12:12:16 +01:00
meta_description.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
meta_title.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
navigation.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
page_url.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
pagination.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
plural.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
post_class.js Remove filters from theme helpers (no async) 2015-12-08 14:35:04 +00:00
prev_next.js Rename confusing 'context' variables 2016-02-21 22:07:15 +00:00
tags.js Add attributes for {{tags}} and {{#foreach}} helpers 2016-01-10 02:47:36 +08:00
template.js Harvest server side strings 2015-12-19 12:12:16 +01:00
title.js
url.js Started moving meta data fetching to functions. 2016-01-23 13:58:21 -08:00
utils.js Theming updates for password protection 2015-05-13 19:48:24 +01:00