You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble generating article summaries using the blog.summary.separator. This is my first attempt with Middleman-blog so no doubt it is a simple error on my part. No amount of DuckDuckGoing has helped me.
Setup
The blog.summary.separator is set in config.rb as:
blog.summary_separator=/(READMORE)/
The article markdown source file text is as follows:
Blog summary
READMORE
First paragraph.
Result
When I use article.body this source text generates:
I do not want the empty paragraph tag in the article body and as I am serving the built files using the application/xhtml+xml media type, I definitely do not want the un-closed paragraph in the article summary.
The text was updated successfully, but these errors were encountered:
I am having trouble generating article summaries using the
blog.summary.separator
. This is my first attempt with Middleman-blog so no doubt it is a simple error on my part. No amount of DuckDuckGoing has helped me.Setup
The
blog.summary.separator
is set inconfig.rb
as:The article markdown source file text is as follows:
Result
When I use
article.body
this source text generates:When I use
article.summary
it generates:If I change the article markdown source file to:
Article body:
When I use
article.summary
it generates:<p>Blog summary.
Why is it a problem?
I do not want the empty paragraph tag in the article body and as I am serving the built files using the
application/xhtml+xml
media type, I definitely do not want the un-closed paragraph in the article summary.The text was updated successfully, but these errors were encountered: