Skip to content

patrickwelker/jekyll-strip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Adapted from Jekyll plugins by Aucor

Overview

Plugins included in this repository:

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

This is the updated version from @andrewgunn which preserves whitespace in <pre> tags.

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 resulting in pretty markup.

Author

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

About

Some helper plugins for Jekyll

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%