hi, I’m new to the forum, my name is Michele and I’m an Italian Computer Science student. Lately I’ve been trying to develop a ghost project. I am looking for a method to create a custom grill in my home. I would like to create 6 lines which will go from 6 to 12 posts at most. A post takes up an entire line if the post contains a certain tag called “Gold”. otherwise the post will take up half of the line. In this case the line will be completed by the next post not containing Gold tag. I already have clear ideas about the (trivial) algorithmic strategy to obtain an ordering that allows me to do this. But being new to using ghost, I don’t understand how to create a helper that took a number of posts to give me this sorted array on which to then call my post-card.hbs for post rendering. in particular I have problems understanding where to write my function and how to register it. my version is 4.23. I currently use a local installation for testing but I also have a production installation on personal hosting
I hope you can help me. unfortunately the documentation for such use cases is a poor one for my current experience.
thank you