Skip to content

Instantly share code, notes, and snippets.

@anselmh
Created January 19, 2011 10:35
Show Gist options
  • Save anselmh/785985 to your computer and use it in GitHub Desktop.
Save anselmh/785985 to your computer and use it in GitHub Desktop.
with If and output filters for blogging
//one - more flexible possibility since it's made with flexible If snippet
[[!If? &subject=`[[+introtext]]` &operator=`isnotempty` &then=`[[+introtext]]` &else=`[[+content:strip_tags:ellipsis=`500`]]` ]]
//the better one when it comes to performance (thank you Mark-H)
[[+introtext:default=`[[+content:strip_tags:ellipsis=`500`]]`]]
@anselmh
Copy link
Author

anselmh commented Jan 19, 2011

Even better since the If snippet is a bit slow..! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment