Post Excerpt With HTML Content

@Niion_Sports
So I was messing around in ghost trying to figure out various ways to access the different properties for a post and I found a way for you to put html in your excerpt and have it output the way you expect!

Wherever you want your excerpt with the html in it to show for the post you’ll want to put this: {{{custom_excerpt}}}

“custom_excerpt” is where the text you added as your excerpt, gets stored before Ghost’s builtin helpers do anything with it, and the triple brackets tells handlebars that you don’t want it to sanitize the html tags present in the field.

6 Likes