diff --git a/Makefile b/Makefile index 8d9d0c2..000392c 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,24 @@ JS_ENGINE ?= `which node nodejs` -ISO = jquery.isotope.js -ISO_MIN = jquery.isotope.min.js +JS = jquery.isotope.js +JS_MIN = jquery.isotope.min.js +SITE = isotope-site # minifies jquery.isotope.js # requires NodeJS and global uglify-js min: ${ISO} @@if test ! -z ${JS_ENGINE}; then \ - echo "Minifying" ${ISO}; \ - uglifyjs ${ISO} > ${ISO_MIN}.tmp; \ - echo ';' >> ${ISO_MIN}.tmp; \ - sed 's/\*\//&§/; y/§/\n/;' ${ISO_MIN}.tmp > ${ISO_MIN}; \ - rm ${ISO_MIN}.tmp; \ + echo "Minifying" ${JS}; \ + uglifyjs ${JS} > ${JS_MIN}.tmp; \ + echo ';' >> ${JS_MIN}.tmp; \ + sed 's/\*\//&§/g; y/§/\n/;' ${JS_MIN}.tmp > ${JS_MIN}; \ + rm ${JS_MIN}.tmp; \ else \ echo "NodeJS required for minification."; \ fi # creates zip file of site zip: _site - mkdir isotope-site - cp -r _site/ isotope-site - zip -r ~/Desktop/isotope-site.zip isotope-site/ - rm -rf isotope-site \ No newline at end of file + mkdir ${SITE} + cp -r _site/ ${SITE} + zip -r ~/Desktop/${SITE}.zip ${SITE}/ + rm -rf ${SITE} \ No newline at end of file diff --git a/_posts/demos/2011-05-22-category-rows.html b/_posts/demos/2011-05-22-category-rows.html new file mode 100644 index 0000000..054a884 --- /dev/null +++ b/_posts/demos/2011-05-22-category-rows.html @@ -0,0 +1,159 @@ +--- +title: Category rows +layout: demo +category: demos +related: layouts +--- + +
+

This demo uses a custom layout mode that arranges elements into columns based on an attribute.

+
+ +
+ +

Filters

+ + + +

Etc

+ + +
+ +
+ {% for elem_number in site.random_order | limit:60 %} + {% assign element = site.elements[elem_number] %} + {% include element-partial.html %} + {% endfor %} +
+ + + + + + + \ No newline at end of file