From 805c217be01dcf2329bbf4dd22504ea51c1fe172 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Thu, 31 Jan 2013 00:49:09 +0100 Subject: [PATCH] Change from ERB to HAML --- source/layouts/layout.erb | 46 ------------------------------ source/layouts/layout.haml | 30 +++++++++++++++++++ source/localizable/index.html.erb | 10 ------- source/localizable/index.html.haml | 8 ++++++ 4 files changed, 38 insertions(+), 56 deletions(-) delete mode 100644 source/layouts/layout.erb create mode 100644 source/layouts/layout.haml delete mode 100644 source/localizable/index.html.erb create mode 100644 source/localizable/index.html.haml diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb deleted file mode 100644 index 1f5e03d..0000000 --- a/source/layouts/layout.erb +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - <%= data.page.title || "Home" %> | Guillaume DOTT - - <%= stylesheet_link_tag "normalize", "all" %> - <%= javascript_include_tag "all" %> - <%= favicon_tag 'favicon.png' %> - - - - - -
-
-

Guillaume DOTT

-

<%= I18n.t(:developer) %>

-
- -
- -
- <%= yield %> -
- - diff --git a/source/layouts/layout.haml b/source/layouts/layout.haml new file mode 100644 index 0000000..6f62645 --- /dev/null +++ b/source/layouts/layout.haml @@ -0,0 +1,30 @@ +!!! 5 +%html + %head + %meta{charset: 'utf-8'} + + / Always force latest IE rendering engine or request Chrome Frame + %meta{content: 'IE=edge,chrome=1', :'http-equiv' => 'X-UA-Compatible'} + + %title= "#{data.page.title || "Home"} | Guillaume DOTT" + = stylesheet_link_tag "normalize", "all" + = javascript_include_tag "all" + = favicon_tag 'favicon.png' + + %body{class: page_classes} + %ul#lang + %li= link_to I18n.t(:french), "/fr/" + %li= link_to I18n.t(:english), "/" + + %header + %div + %h1 Guillaume DOTT + %h2= I18n.t(:developer) + #download_cv + = link_to '/files/CV_Guillaume_DOTT.pdf' do + #icon + = image_tag 'pdf.png' + %p= I18n.t(:download_resume) + + %section + = yield diff --git a/source/localizable/index.html.erb b/source/localizable/index.html.erb deleted file mode 100644 index 7537cd6..0000000 --- a/source/localizable/index.html.erb +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Welcome to Middleman ---- - -
-

Middleman is Watching

-

- <%= link_to "Read Online Documentation", "http://middlemanapp.com/" %> -

-
\ No newline at end of file diff --git a/source/localizable/index.html.haml b/source/localizable/index.html.haml new file mode 100644 index 0000000..5d0164b --- /dev/null +++ b/source/localizable/index.html.haml @@ -0,0 +1,8 @@ +--- +title: Welcome to Middleman +--- + +.welcome + %h1 Middleman is Watching + %p.doc + = link_to "Read Online Documentation", "http://middlemanapp.com"