From 09a5d66b3e72789ffb77d86a9d76bd44f1e0a50e Mon Sep 17 00:00:00 2001 From: Joel Glovier Date: Thu, 16 Jan 2014 13:18:52 -0500 Subject: [PATCH] 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