Skip to content

Instantly share code, notes, and snippets.

View mmistakes's full-sized avatar

Michael Rose mmistakes

View GitHub Profile
@allejo
allejo / _README.md
Last active September 7, 2017 08:52
Generate a Table of Contents for a Jekyll post with pure Liquid (License: BSD-3)
@benedfit
benedfit / _critical.scss
Last active November 25, 2021 12:36
Critical CSS using Sass and Jekyll
$critical-css-only:true !default;
@mixin critical($critical-only:true){
@if (($critical-css-only and $critical-only) or (not $critical-css-only and not $critical-only)){
@content;
}
}
@ilkka
ilkka / tag_cloud_tag.rb
Created November 22, 2010 20:07
Jekyll tag cloud / tag pages plugin
module Jekyll
class TagCloudTag < Liquid::Tag
safe = true
def initialize(tag_name, text, tokens)
super
end
def render(context)
html = ""