You can definitely filter messages by tags using the {{has}} helper:
{{#foreach posts}} {{#has tag="news"}} {{> post}} {{/has}} {{/foreach}}
You can add this code to your home.hbs file and it will only be used on your home page.
I'm not sure how best to limit it to one post if you want more than one post on other pages of the list. You may need to write a custom helper.
You have access to the @index variable, but if the first message with 'news' is the third message, @index will be 2 because it grows with the outer foreach .
Soon you will be able to use the api: https://github.com/TryGhost/Ghost/wiki/%5BWIP%5D-API-Documentation
source share