There's two things i want to do.
Shorten the teaser text
Pull out a specific link to use as a button
I think i figured it out though using something like { "hook": "filter:topics.get", "method": "teaserContentShort" }
var Theme = {
teaserContentShort: function (data, callback) {
data.topics.forEach(topic => {
topic.teaser.contentShort = topic.teaser.content.slice(0,20);
});
callback(null, data);
}
};
It seems to work. Hopefully thats not using the wrong paradigm.