Can someone help me understand this logic of Casper2 theme,
where there is bunch of post cards, and sometimes there are 3 cards,
sometimes, there are two, and sometimes there is only one that is wide
I’m interested in last one - when does it appear, and can I somehow make it appear
after 3 cards - whenever I want to.
The first (most recent) post in the list is styled to be bigger than the others and take over the full width of the grid to give it more emphasis. Wrapped in a media query to make sure this only happens on large viewports / desktop-ish devices.
No, In ghost, featuring a post does not bring that post automatically at the first place. That post will appear at normal position in post’s order ( Ordered by published date ).
{{#get "posts" filter="featured:true"}}
{{! Loop through our featured posts }}
{{#foreach posts}}
{{title}}
{{! here you can output anything of a post object}}
{{/foreach}}
{{/get}}