Skip to content

Instantly share code, notes, and snippets.

View agoodkind's full-sized avatar
🏳️‍🌈
🍍

Alex Goodkind agoodkind

🏳️‍🌈
🍍
View GitHub Profile
@agoodkind
agoodkind / direcory_tag.rb
Created August 19, 2018 20:02 — forked from jgatjens/direcory_tag.rb
jekyll-plugin loop_directory
#usage:
#{% loop_directory directory:images iterator:image filter:*.jpg sort:descending %}
# <img src="{{ image }}" />
#{% endloop_directory %}
module Jekyll
class LoopDirectoryTag < Liquid::Block
include Liquid::StandardFilters
Syntax = /(#{Liquid::QuotedFragment}+)?/