Skip to content

Instantly share code, notes, and snippets.

View brettburwell's full-sized avatar

Brett Burwell brettburwell

View GitHub Profile
@brettburwell
brettburwell / entry_search.js
Last active August 10, 2017 14:53
Entry Search
var EventEmitter = require('eventEmitter');
var Debounce = require('debounce');
var PubSub = require('pubsub-js');
module.exports = function(options) {
/*
DESCRIPTION
Entry search/filtering via search input.
OPTIONS:
@brettburwell
brettburwell / img.html
Last active June 26, 2018 09:05
Craft macro to centralize the markup and config for responsive images
{# ================================================================== #}
{# Responsive Image Macro
{# ================================================================== #}
{#
Macro to centralize the markup and config for responsive images.
Based on an article by Marion Newlevant (@marionnewlevant) and
adapted for the Lazysizes plugin. Read more:
https://straightupcraft.com/articles/responsive-images-with-twig-macros