Skip to content

A liquid tag for Jekyll to generate an SVG/Base64 geo pattern

License

Notifications You must be signed in to change notification settings

jasonlong/jekyll-geo-pattern

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geo Pattern Plugin

A liquid tag for Jekyll to generate an SVG/Base64 geo pattern. Based on https://github.com/jasonlong/geo_pattern.

Build Status

Setting up

Add the following to your site's _config.yml file

gems:
  - jekyll-geo-pattern

Usage

You can choose to generate either a Base64 encoded string:

{% base64_geo_pattern text="Mastering Markdown" %}

Or, an SVG image:

{% svg_geo_pattern text="Mastering Markdown"} %}

Note that you provide parameter as regular attribues. You must have at least the text key. The geopattern is generated from this text.

You can also pass in the other options from the geo_pattern library:

{% base64_geo_pattern text"Some title" base_color="#fc0"} %}
{% svg_geo_pattern text="Another title" generator="sine_waves"} %}

With the Base64 pattern, you can generate something like this as a visual element:

<div style="background-image:{% base64_geo_pattern {:text => 'Mastering Markdown'} %}"></div>

About

A liquid tag for Jekyll to generate an SVG/Base64 geo pattern

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 98.8%
  • Shell 1.2%