Change "content" helper behavior


#1

Currently, the “content” helper appears to wrap the content in a paragraph element. That is a problem for me because I want to have a “read more” link separated from the content by a space. Currently it is separated from the content by several lines. How can I remove the paragraph wrapper? Do I need to make a custom helper, or is there a simpler way to do it? Thanks.


#2

If you’re trying to create an article preview without HTML, then you can use the excerpt helper, instead of content: https://docs.ghost.org/api/handlebars-themes/helpers/excerpt/


#3

I actually switched from “excerpt” to “content” because “excerpt” was not putting a space between the byline and the rest of the post. This “byline” is not the “author” field – it actually is just the first sentence of the post.