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.
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/
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.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.