This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for f in ./*.png | |
do | |
FILE=$f | |
FILENAME=${f%.*} | |
if [ ! -e $FILE ]; then | |
echo $FILE.png does not exist | |
exit 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class Base < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
end | |
def render(context) | |
page = context['page'] | |
depth = page['path'].split('/').size() | |
case depth | |
when 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set the slides to all the same height | |
if($(".carousel").length){ | |
var maxHeight,items,numSlides; | |
$(".carousel").each(function(){ | |
maxHeight = 0, | |
items = $(this).find(".item"), | |
numSlides = items.length; | |
items.each(function(i){ | |
var h = $(this).height(); | |
if(h > maxHeight){ |