Change from ERB to HAML
This commit is contained in:
parent
0e8be5ed5f
commit
805c217be0
@ -1,46 +0,0 @@
|
||||
<!doctype html>
|
||||
<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">
|
||||
|
||||
<!-- Use title if it's in the page YAML frontmatter -->
|
||||
<title><%= data.page.title || "Home" %> | Guillaume DOTT</title>
|
||||
|
||||
<%= stylesheet_link_tag "normalize", "all" %>
|
||||
<%= javascript_include_tag "all" %>
|
||||
<%= favicon_tag 'favicon.png' %>
|
||||
</head>
|
||||
|
||||
<body class="<%= page_classes %>">
|
||||
<ul id="lang">
|
||||
<li><%= link_to I18n.t(:french), "/fr/" %></li>
|
||||
<li><%= link_to I18n.t(:english), "/" %></li>
|
||||
</ul>
|
||||
|
||||
<header>
|
||||
<div>
|
||||
<h1>Guillaume DOTT</h1>
|
||||
<h2><%= I18n.t(:developer) %></h2>
|
||||
</div>
|
||||
<div id="download_cv">
|
||||
<div id="icon">
|
||||
<a href="/files/CV_Guillaume_DOTT.pdf">
|
||||
<%= image_tag 'pdf.png' %>
|
||||
</a>
|
||||
</div>
|
||||
<p>
|
||||
<a href="/files/CV_Guillaume_DOTT.pdf">
|
||||
<%= I18n.t(:download_resume) %><br />
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section>
|
||||
<%= yield %>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
30
source/layouts/layout.haml
Normal file
30
source/layouts/layout.haml
Normal file
@ -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
|
||||
@ -1,10 +0,0 @@
|
||||
---
|
||||
title: Welcome to Middleman
|
||||
---
|
||||
|
||||
<div class="welcome">
|
||||
<h1>Middleman is Watching</h1>
|
||||
<p class="doc">
|
||||
<%= link_to "Read Online Documentation", "http://middlemanapp.com/" %>
|
||||
</p><!-- .doc -->
|
||||
</div><!-- .welcome -->
|
||||
8
source/localizable/index.html.haml
Normal file
8
source/localizable/index.html.haml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Welcome to Middleman
|
||||
---
|
||||
|
||||
.welcome
|
||||
%h1 Middleman is Watching
|
||||
%p.doc
|
||||
= link_to "Read Online Documentation", "http://middlemanapp.com"
|
||||
Loading…
x
Reference in New Issue
Block a user