Skip to content

Instantly share code, notes, and snippets.

@textandhypertext
textandhypertext / index.html.haml
Created April 20, 2012 04:34
Haml version of Middleman's default index
- content_for(:head) do
%title The Middleman!
%h1 The Middleman is watching.
@textandhypertext
textandhypertext / layout.haml
Created April 20, 2012 04:26
Haml version of Middleman's default layout
!!! 5
%head
%meta{:charset => "utf-8"}
/#Always force latest IE rendering engine (even in intranet) & Chrome Frame
%meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
= stylesheet_link_tag 'site'
= yield_content :head
%body{:class => page_classes}
@textandhypertext
textandhypertext / _font-face.sass
Created March 2, 2012 12:48
Sass mixin for @font-face with styles and weights
=font-face($family, $style, $weight)
$prefix = "'type/" +$family + $style + $weight
@font-face
font:
family: $family
style: $style
weight: $weight
src: url($prefix + ".eot?#iefix'") format('embedded-opentype')
src: url($prefix + ".woff'" ) format('woff')
src: url($prefix + ".ttf'") format('truetype')