Thanks, but yeah again, im looking for a file on disk that i can version control and share across the team. Seems that may not be possible though.
I
its.brad
@its.brad
Posts
-
Custom homepage template -
Edit teaser textThere'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.
-
Custom homepage template@jtsimoes Maybe, things like that don't generally feel powerful enough for my needs. If i create a theme I'd like to have more control of the homepage. I'll play around with it though.