No commit activity in last 3 years
No release in over 3 years
jekyll plugin to generate html snippets for embedding Pizza for Ukraine random pictures
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

Jekyll Pizza for Ukraine

This Jekyll plugin provides a tag that requests a random picture from the Pizza For Ukraine random picture api and generates a (responsive) html snippet to embed the picture into your site; honestly this tool is fine tuned for fuzzyblog. I'm happy to extend it; contact me if it doesn't meet your needs.

Note: This plugin was written by taking dommmel's jekyll youtube plugin and customizing it for a random picture inserter. Any errors are mine not theirs and I appreciate the bootstrap that jekyll youtube gave me.

Installation

Add this line to your Gemfile:

group :jekyll_plugins do
  gem "jekyll-pizzaforukraine"
end

And then execute:

$ bundle

Alternatively install the gem yourself as:

$ gem install jekyll-pizzaforukraine

and put this in your _config.yml

plugins: [jekyll-pizzaforukraine]
 # This will require each of these gems automatically.

Usage

Embed it as a tag where you want an image to come out:

 {% pizzaforukraine  %}

Result

By default the plugin will output the following code

{:.center}
![Pizza](http://pizzaforukraine.com:443/assets/random/DSC01462.JPG)

{:.center}
Pizza courtesy of Pizza for Ukraine!

{:.center}
[Donate Now to Pizza for Ukraine](https://www.pizzaforukraine.com/)