Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Some helper plugins for Jekyll
Ruby
tree: 333794ca30

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENCE
README.md
strip.rb

README.md

Jekyll plugins by Aucor

Collection of plugins for the Jekyll static site generator.

Overview

Plugins included in this repository:

  • strip.rb - Block tag for trimming away unwanted newlines and whitespace between them.

Usage

Strip.rb

Using eg. forloops to generate navigation produces often a huge amount of ugly whitespace. Wrapping the section with {% strip %}{% endstrip %} replaces the blocks of whitespace with one newline keeping the resulting in pretty markup.

Example:

{% strip %}

    <li>List item 1</li>
    
    
    
    
    <li>List item 2</li>
    
    <li>List item 3</li>
    

{% endstrip %}

becomes:

  • List item 1
  • List item 2
  • List item 3

Author

Plugins written by Janne Ala-Äijälä of Aucor Oy

Copyright

Copyright (c) 2012 Aucor Oy. Released under MIT Licence (see LICENCE for details).

Something went wrong with that request. Please try again.