0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/unit/helpers
Rish 886f564dc4 Updated default visibility in foreach for posts to all
closes https://github.com/TryGhost/Team/issues/485

In order to loop over all posts, we currently need to pass a visibility="all" flag to a foreach as default for all items in current `visibility` helper is set to `public`. For a post, this behaviour is unintuitive, and inconsistent with the API. Instead, the default visibility should be "all" for the posts. The update allows themes to get all posts directly without passing in visibility -

```
{{#get "posts"}}
    {{#foreach posts}}
        //Loops over all posts, not just `public`
    {{/foreach}}
{{/get}}
```
2021-03-02 15:44:19 +05:30
..
test_tpl Updated {{content}} helper partial template name 2021-02-09 13:59:52 +05:30
asset_spec.js
author_spec.js
authors_spec.js
body_class_spec.js
cancel_link_spec.js
concat_spec.js
content_spec.js Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
date_spec.js
encode_spec.js
excerpt_spec.js
facebook_url_spec.js
foreach_spec.js Updated default visibility in foreach for posts to all 2021-03-02 15:44:19 +05:30
get_spec.js
ghost_foot_spec.js
ghost_head_spec.js Updated twitter/og structured data rules 2021-02-05 18:50:11 +13:00
has_spec.js
img_url_spec.js
is_spec.js
lang_spec.js
link_class_spec.js
link_spec.js
meta_description_spec.js
meta_title_spec.js
navigation_spec.js
next_post_spec.js Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
page_url_spec.js
pagination_spec.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
plural_spec.js
post_class_spec.js
prev_post_spec.js Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
price_spec.js Updated price helper to output well formatted prices 2021-02-25 13:01:24 +05:30
raw_spec.js
reading_time_spec.js
t_spec.js 🐛 Fixed incorrect locale loading when changing themes 2021-01-04 17:26:22 +13:00
tags_spec.js
title_spec.js
twitter_url_spec.js
url_spec.js