jekyll/features
Kevin Locke bb9462f12f Whole-post excerpts should match the post content
When a post does not contain an excerpt_separator, meaning the excerpt
includes the entire post, the excerpt should contain exactly the post
content.

This is desirable both from a correctness standpoint, that the excerpt
should not introduce any new content, and more practically to allow fast
and easy detection of whole-post excerpts in Liquid templates using
`post.excerpt == post.content`.  A common use-case is deciding whether
to render "Read More" links on a page containing post excerpts.

This commit does exactly that.  It avoids adding additional newlines to
the excerpt content when the excerpt includes the whole post and adds
tests to ensure that this behavior is correct and preserved going
forward.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2015-10-01 13:58:00 -07:00
..
step_definitions features: Update the way we access Minitest assertions 2015-04-28 12:49:45 -07:00
support features: Update the way we access Minitest assertions 2015-04-28 12:49:45 -07:00
collections.feature features: update collections features to match new iteration method 2015-04-29 10:49:06 -07:00
create_sites.feature Fix up test for 'future' flag. /cc #3892 2015-08-16 13:15:47 -04:00
data.feature Autoload csv files from data directory 2014-08-16 14:54:14 +01:00
drafts.feature Fix some cucumber features. 2015-01-17 16:52:12 -08:00
embed_filters.feature Fix some cucumber features. 2015-01-17 16:52:12 -08:00
frontmatter_defaults.feature Fix last feature 2015-01-17 16:52:12 -08:00
hooks.feature address code review feedback from #3553 2015-05-02 15:56:19 -07:00
include_tag.feature Fix some cucumber features. 2015-01-17 16:52:12 -08:00
incremental_rebuild.feature Add unit and cucumber tests 2014-11-26 21:15:53 -08:00
markdown.feature Remove Maruku-specific tests 2015-04-14 10:58:47 -07:00
pagination.feature Add configuration fallback for paginate, and fix tests. 2015-01-31 13:53:17 -08:00
permalinks.feature Added permalink time variables 2015-09-23 21:51:02 -03:00
plugins.feature Finish up the plugin manager 2014-11-05 19:29:54 -08:00
post_data.feature Use category in downcase only for URL (Resolves #1739) 2014-08-07 11:27:41 +09:00
post_excerpts.feature Whole-post excerpts should match the post content 2015-10-01 13:58:00 -07:00
rendering.feature Add configuration fallback for paginate, and fix tests. 2015-01-31 13:53:17 -08:00
site_configuration.feature Make _includes directory configurable; closes #2684 2015-08-09 16:20:58 +01:00
site_data.feature Cleaned up cucumbers 2014-04-23 13:40:21 -04:00