Skip to content

Instantly share code, notes, and snippets.

class Video < Liquid::Tag
Syntax = /^\s*([^\s]+)(\s+(\d+)\s+(\d+)\s*)?/
def initialize(tagName, markup, tokens)
super
@url = Jekyll.configuration({})['url'] || 'http://example.com'
if markup =~ Syntax then
@id = $1
@jeauxlb
jeauxlb / gallery_creator.py
Last active January 12, 2018 11:57 — forked from opieters/gallery_creator.py
Python script to generate configuration for a lightGallery photo gallery in Jekyll.