elpato
1
I’m looking for a way to get all posts and pages with one single {{#get}} helper. Is this possible?
On the home page of my Ghost blog, I’d like to show all posts and pages with a certain tag. Something to the effect of:
{{#get "posts, pages" filter="tag:home" limit="all" as |article|}}
{{#foreach article}}
{{> post-card}}
{{/foreach}}
{{/get}}
Did you figure this out? Or else someone figure this out, please let me know.
Kevin
3
It’s not possible, posts and pages are separate resources so can’t be combined into a single API request which is what the {{#get}}
helper equates to.
Maybe you could explain why you need both posts and pages together? It sounds like there may be some confusion as to how pages are being used.