mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Closes #3414 - Adds a helper which shows a select string deopending on the number of items provided ``` {{plural pagination.total empty='No posts' singular='% post' plural='% posts'}} ``` If `pagination.total` == 0, output 'No Posts' If `pagination.total` == 1, outputs `1 Post` If `pagination.total` == 2 or more, outputs `2 Posts` Credit to @sebgie for making this work. |
||
---|---|---|
.. | ||
apps_spec.js | ||
bootstrap_spec.js | ||
config_spec.js | ||
errorHandling_spec.js | ||
filters_spec.js | ||
frontend_spec.js | ||
mail_spec.js | ||
middleware_spec.js | ||
permissions_spec.js | ||
server_helpers_index_spec.js | ||
server_helpers_template_spec.js | ||
server_spec.js | ||
showdown_client_integrated_spec.js | ||
showdown_ghostGFM_spec.js | ||
showdown_ghostimagepreview_spec.js | ||
storage_localfilesystem_spec.js | ||
xmlrpc_spec.js |