Ghost/core/frontend/helpers
Marat Vyshegorodtsev 74b97e99cd
Added timezone and locale to the options of the date helper (#13892)
fixes https://github.com/TryGhost/Ghost/issues/13832

The `date` handlebars helper has only one option currently — `format`. It assumes the locale and timezone from the `options.data.site` object which is not always desired behavior.

The helper sometimes is used, for example, in custom RSS template where we always need the `en-US` locale, not the one that we have configured for the website globally. This change makes the two options configurable, and defaults to the `options.data.site` object values, if not specified in the helper (keeps the backwards compatibility with the current behavior).
2022-01-19 14:43:53 +00:00
..
tpl Added beta {{products}} helper for tiers list on post (#13267) 2021-09-10 09:30:41 +05:30
asset.js 🐛 Fixed broken assets for theme/design preview 2021-11-03 11:20:04 +01:00
author.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
authors.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
body_class.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
cancel_link.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
concat.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
content.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
date.js Added timezone and locale to the options of the date helper (#13892) 2022-01-19 14:43:53 +00:00
encode.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
excerpt.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
facebook_url.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
foreach.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
get.js Supported restricting limit="all" in get helper (#13903) 2021-12-16 13:59:39 +02:00
ghost_foot.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
ghost_head.js 🐛 Fixed card scripts executing before DOM is parsed 2021-12-08 17:54:37 +02:00
has.js Removed core @tryghost pkg usage from f/e proxy 2021-09-28 12:19:02 +01:00
img_url.js Removed core @tryghost pkg usage from f/e proxy 2021-09-28 12:19:02 +01:00
is.js Removed core @tryghost pkg usage from f/e proxy 2021-09-28 12:19:02 +01:00
lang.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
link_class.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
link.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
match.js Added basic {{match}} helper 2021-10-14 19:36:56 +01:00
meta_description.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
meta_title.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
navigation.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
page_url.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
pagination.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
plural.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
post_class.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
prev_post.js Refactored helper registration code into a service 2021-10-05 10:04:02 +01:00
price.js Removed core @tryghost pkg usage from f/e proxy 2021-09-28 12:19:02 +01:00
products.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
raw.js Added raw handlebars helper 2020-04-06 17:26:50 +01:00
reading_time.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
t.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
tags.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
title.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
twitter_url.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
url.js 🐛 Fixed malformed URLs crashing the url helper 2021-12-02 10:34:24 +01:00