Skip to content

Instantly share code, notes, and snippets.

{% assign items = site.collection | group_by: 'type' | sort: 'typeweight' %}
{% for item in items %}
{{item}}
{% endfor %}
Results in...
{"NAME"=>"ASIDES", "ITEMS"=>[#, #, #]}
{"NAME"=>"MASTHEAD", "ITEMS"=>[#]}
{"NAME"=>"CONTENT", "ITEMS"=>[#]}
#Web axioms to live by
1. if you can do it in HTML, don’t use CSS
2. if you can do it in CSS, don’t use JS
3. if all else fails use JS
https://twitter.com/johnallsopp/status/719755806594367494
#WCAG 2.0
##Understanding the Four Principles of Accessibility
http://www.w3.org/TR/UNDERSTANDING-WCAG20/intro.html#introduction-fourprincs-head
@westleyknight
westleyknight / Drupal Pagination Layout
Created March 19, 2013 15:33
A simple set of baseline CSS to position the standard Drupal pagination links. It puts the 'first' and 'previous' links to the left, 'next' and 'last' links to the right, with the page numbers aligned to the center.
/* Drupal Pagination Layout */
.pager {
padding: 0;
position: relative;
}
.item-list .pager .pager-first,
.item-list .pager .pager-previous,
.item-list .pager .pager-next,