Skip to content

Instantly share code, notes, and snippets.

@logansnikt
Forked from acconrad/html5.haml
Created November 3, 2013 19:50
Show Gist options
  • Save logansnikt/7294051 to your computer and use it in GitHub Desktop.
Save logansnikt/7294051 to your computer and use it in GitHub Desktop.

Revisions

  1. @acconrad acconrad revised this gist Apr 26, 2012. 1 changed file with 37 additions and 44 deletions.
    81 changes: 37 additions & 44 deletions html5.haml
    Original file line number Diff line number Diff line change
    @@ -1,50 +1,43 @@
    !!! 5
    %html{ :lang => "en"}
    %head
    %title= "Your Website"
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    %meta{ :content => "", :name => "description" }
    %meta{ :content => "", :name => "author" }
    %meta{ :content => "3 days", :name => "revisit-after" }
    %link{ :href => "http://creativecommons.org/licenses/by/3.0/", :rel => "license", :title => "Creative Commons Attribution 3.0 Unported License" }
    %link{ :href => "/feed", :rel => "alternate", :title => "Atom", :type => "application/atom+xml" }
    %link{ :charset => "utf-8", :href => "/css/screen.css", :media => "screen", :rel => "stylesheet", :type => "text/css" }
    %body
    %header
    %nav
    %ul
    %li= "Menu Item"
    !!!
    %title= "Your Website"
    %meta{ :charset => "utf-8" }
    %meta{ :http-equiv="X-UA-Compatible" :content => "IE=edge,chrome=1" }
    %meta{ :content => "", :name => "description" }
    %meta{ :content => "", :name => "author" }
    %link{ :href => "/css/style.css", :rel => "stylesheet" }
    %header
    %nav
    %ul
    %li= "Menu Item"

    %section
    %article
    %header
    %h2= "Article Title"
    %p
    Posted on
    %time{ :datetime => "2009-09-04T16:31:24+02:00" }= "September 4th 2009"
    by
    %a{ :href => "#" }= "Author Name"
    -
    %a{ :href => "#" }= "6 comments"
    %section
    %article
    %header
    %h2= "Article Title"
    %p
    Posted on
    %time{ :datetime => "2009-09-04T16:31:24+02:00" }= "September 4th 2009"
    by
    %a{ :href => "#" }= "Author Name"
    -
    %a{ :href => "#" }= "6 comments"

    %article
    %p
    It doesn&#39;t look so shiny to me. I just want to talk. It has nothing to do
    with mating. Fry, that doesn&#39;t make sense. Why would I want to know that?
    %p
    They&#39;re like sex, except I&#39;m having them! You seem malnourished. Are
    you suffering from intestinal parasites? Yeah. Give a little credit
    to our public schools.

    %article
    %p
    It doesn&#39;t look so shiny to me. I just want to talk. It has nothing to do
    with mating. Fry, that doesn&#39;t make sense. Why would I want to know that?
    %p
    They&#39;re like sex, except I&#39;m having them! You seem malnourished. Are
    you suffering from intestinal parasites? Yeah. Give a little credit
    to our public schools.

    %aside
    %h2= "The Sidebar"
    %p
    Michelle, I don&#39;t regret this, but I both rue and lament it. Our love isn&#39;t any
    different from yours, except it&#39;s hotter, because I&#39;m involved. Bender, quit
    destroying the universe! Robot 1-X, save my friends! And Zoidberg!

    %aside
    %h2= "The Sidebar"
    %p
    Michelle, I don&#39;t regret this, but I both rue and lament it. Our love isn&#39;t any
    different from yours, except it&#39;s hotter, because I&#39;m involved. Bender, quit
    destroying the universe! Robot 1-X, save my friends! And Zoidberg!

    %footer
    %p
    Copyright 2011 My Name
    Copyright 2012 My Name
  2. Carlos A. Cabrera revised this gist Jan 24, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion html5.haml
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@
    %header
    %h2= "Article Title"
    %p
    Poste on
    Posted on
    %time{ :datetime => "2009-09-04T16:31:24+02:00" }= "September 4th 2009"
    by
    %a{ :href => "#" }= "Author Name"
  3. Carlos A. Cabrera created this gist Apr 9, 2011.
    50 changes: 50 additions & 0 deletions html5.haml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    !!! 5
    %html{ :lang => "en"}
    %head
    %title= "Your Website"
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    %meta{ :content => "", :name => "description" }
    %meta{ :content => "", :name => "author" }
    %meta{ :content => "3 days", :name => "revisit-after" }
    %link{ :href => "http://creativecommons.org/licenses/by/3.0/", :rel => "license", :title => "Creative Commons Attribution 3.0 Unported License" }
    %link{ :href => "/feed", :rel => "alternate", :title => "Atom", :type => "application/atom+xml" }
    %link{ :charset => "utf-8", :href => "/css/screen.css", :media => "screen", :rel => "stylesheet", :type => "text/css" }
    %body
    %header
    %nav
    %ul
    %li= "Menu Item"

    %section
    %article
    %header
    %h2= "Article Title"
    %p
    Poste on
    %time{ :datetime => "2009-09-04T16:31:24+02:00" }= "September 4th 2009"
    by
    %a{ :href => "#" }= "Author Name"
    -
    %a{ :href => "#" }= "6 comments"

    %article
    %p
    It doesn&#39;t look so shiny to me. I just want to talk. It has nothing to do
    with mating. Fry, that doesn&#39;t make sense. Why would I want to know that?
    %p
    They&#39;re like sex, except I&#39;m having them! You seem malnourished. Are
    you suffering from intestinal parasites? Yeah. Give a little credit
    to our public schools.


    %aside
    %h2= "The Sidebar"
    %p
    Michelle, I don&#39;t regret this, but I both rue and lament it. Our love isn&#39;t any
    different from yours, except it&#39;s hotter, because I&#39;m involved. Bender, quit
    destroying the universe! Robot 1-X, save my friends! And Zoidberg!


    %footer
    %p
    Copyright 2011 My Name