Skip to content
This repository has been archived by the owner on Sep 27, 2018. It is now read-only.

Latest commit

 

History

History
30 lines (21 loc) · 979 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 979 Bytes

Jekyll Image Encode

already abandoned? jeez, it's like circ town here

This project is no longer required for Discord_Fork, and as such, is no longer maintained. like it ever was to begin with

Original README.md

is a fork of another project

This Jekyll plugin fetches images from the web and renders their corresponding base64 codes.

For example, a 1x1 clear PNG would become:

<img src="data:image;base64, iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAxJREFUCNdj+P//PwAF/gL+3MxZ5wAAAABJRU5ErkJggg== " />

Be sure to know your reasons when using this plugin.

Installation

Dunno. I don't Ruby. This is a bodge to allow defaults, and also to grab data from the page

Usage

This grabs page.data.avatar, and if the URL doesn't exist, defaults to /assets/images/logo.png, relative to the Jekyll

<img href="{% base64 data.avatar;/assets/images/logo.png %}" />