No commit activity in last 3 years
No release in over 3 years
A liquid tag for Jekyll to generate an SVG/Base64 geo pattern
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.13.0

Runtime

~> 1.2.1
>= 0
 Project Readme

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: url(data:image/svg+xml;base64,{% base64_geo_pattern text="Mastering Markdown" %});"></div>