Skip to content

Instantly share code, notes, and snippets.

View BryanSchuetz's full-sized avatar
🎧
"Got a blank space where my mind should be, a Cliff Bar and some cold green tea"

Bryan Schuetz BryanSchuetz

🎧
"Got a blank space where my mind should be, a Cliff Bar and some cold green tea"
View GitHub Profile
// This file goes in /src/transforms/
// Add this line to .eleventy.js:
// const eleventyImgTransform = require("./src/transforms/eleventy-img-transform.js");
// And add this one to module.exports in .eleventy.js:
// eleventyConfig.addTransform("eleventyImgTransform", eleventyImgTransform);
const Image = require("@11ty/eleventy-img");
const cheerio = require("cheerio");
@JJediny
JJediny / gist:a466eed62cee30ad45e2
Created October 5, 2015 20:42
Jekyll Liquid Cheatsheet

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by