From c371926e09bd089580c0b87f440235fd039a0636 Mon Sep 17 00:00:00 2001 From: Stuart Kent Date: Thu, 5 Mar 2015 23:56:25 -0500 Subject: [PATCH] Restructure excerpt_separator documentation for clarity --- site/_docs/posts.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/site/_docs/posts.md b/site/_docs/posts.md index 0b0e8773..4d23fa54 100644 --- a/site/_docs/posts.md +++ b/site/_docs/posts.md @@ -164,13 +164,7 @@ which is already done for you. These tags can be removed with the following if y {% raw %}{{ post.excerpt | remove: '

' | remove: '

' }}{% endraw %} {% endhighlight %} -If you don't like the automatically-generated post excerpt, it can be overridden by adding -`excerpt` to your post's YAML Front Matter. Completely disable it by setting -your `excerpt_separator` to `""`. - -Also, as with any output generated by Liquid tags, you can pass the `| strip_html` flag to remove any html tags in the output. This is particularly helpful if you wish to output a post excerpt as a `meta="description"` tag within the post `head`, or anywhere else having html tags along with the content is not desirable. - -Additionally you are able to specify per-post `excerpt_separator` value if it is required just only the the selected post. Just specify the `excerpt_separator` with the same way as `excerpt` in the post's YAML head: +If you don't like the automatically-generated post excerpt, it can be explicitly overridden by adding an `excerpt` value to your post's YAML Front Matter. Alternatively, you can choose to define a custom `excerpt_separator` in the post's YAML Front Matter: {% highlight text %} --- @@ -182,6 +176,10 @@ Excerpt Out-of-excerpt {% endhighlight %} +Completely disable excerpts by setting your `excerpt_separator` to `""`. + +Also, as with any output generated by Liquid tags, you can pass the `| strip_html` flag to remove any html tags in the output. This is particularly helpful if you wish to output a post excerpt as a `meta="description"` tag within the post `head`, or anywhere else having html tags along with the content is not desirable. + ## Highlighting code snippets Jekyll also has built-in support for syntax highlighting of code snippets using