From 09a5d66b3e72789ffb77d86a9d76bd44f1e0a50e Mon Sep 17 00:00:00 2001 From: Joel Glovier Date: Thu, 16 Jan 2014 13:18:52 -0500 Subject: [PATCH 1/2] Update post.md with additional info about excerpt Adds a paragraph noting that use of the liquid `| strip_html` flag is possible and useful for meta tag purposes. --- site/docs/posts.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/docs/posts.md b/site/docs/posts.md index f93eb6b5..3c6ca7fe 100644 --- a/site/docs/posts.md +++ b/site/docs/posts.md @@ -155,6 +155,8 @@ If you don't like the automatically-generated post excerpt, it can be overridden `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`. + ## Highlighting code snippets Jekyll also has built-in support for syntax highlighting of code snippets using From ded6350c808c143f3e7053ed74637b90107dd7e4 Mon Sep 17 00:00:00 2001 From: Joel Glovier Date: Thu, 16 Jan 2014 13:24:54 -0500 Subject: [PATCH 2/2] small tweak to clarify last sentence --- site/docs/posts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/posts.md b/site/docs/posts.md index 3c6ca7fe..a8f918f8 100644 --- a/site/docs/posts.md +++ b/site/docs/posts.md @@ -155,7 +155,7 @@ If you don't like the automatically-generated post excerpt, it can be overridden `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`. +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