Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vsespb/jekyll-cut-filter


https://github.com/vsespb/jekyll-cut-filter

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# jekyll-cut-filter

This is a [Liquid](http://liquidmarkup.org/) filter intended to be used with [Jekyll](http://github.com/mojombo/jekyll) static site generator.

## Installation

Copy `jekyll-cut.rb` file into `_plugins` directory.

## Usage

Use `` tag in .textile files to hide content below it and `cut` filter in Liquid templates:

{{ post.content | cut }}

Note that `` tag should be removed while rendering full post:

{{ post.content | remove:"" }}

(Example)
```
Index: _includes/themes/twitter/post.html
===================================================================
--- _includes/themes/twitter/post.html
+++ _includes/themes/twitter/post.html
@@ -4,7 +4,7 @@



- {{ content }}
+ {{ content | remove:"" }}