Skip to content

Commit

Permalink
Convert haml layout to erb
Browse files Browse the repository at this point in the history
  • Loading branch information
twe4ked committed Mar 29, 2015
1 parent fcf1601 commit 8642c8d
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 80 deletions.
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -2,6 +2,5 @@ source "http://rubygems.org"

gem 'adsf'
gem 'compass', '~> 0.12.2'
gem 'haml'
gem 'nanoc', '~> 3.6.4'
gem 'redcarpet'
4 changes: 0 additions & 4 deletions Gemfile.lock
Expand Up @@ -12,21 +12,17 @@ GEM
cri (2.3.0)
colored (>= 1.2)
fssm (0.2.10)
haml (4.0.6)
tilt
nanoc (3.6.4)
cri (~> 2.3)
rack (1.5.2)
redcarpet (3.0.0)
sass (3.2.10)
tilt (2.0.1)

PLATFORMS
ruby

DEPENDENCIES
adsf
compass (~> 0.12.2)
haml
nanoc (~> 3.6.4)
redcarpet
2 changes: 1 addition & 1 deletion Rules
Expand Up @@ -52,4 +52,4 @@ route '*' do
end
end

layout '*', :haml, :format => :html5
layout '*', :erb, :format => :html5
2 changes: 1 addition & 1 deletion config.yaml
@@ -1,7 +1,7 @@
# A list of file extensions that nanoc will consider to be textual rather than
# binary. If an item with an extension not in this list is found, the file
# will be considered as binary.
text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml', 'coffee' ]
text_extensions: [ 'css', 'erb', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml', 'coffee' ]

# The path to the directory where all generated files will be written to. This
# can be an absolute path starting with a slash, but it can also be path
Expand Down
80 changes: 80 additions & 0 deletions layouts/default.erb
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta content='chrome=1' http-equiv='X-UA-Compatible'>
<title>
<%= @item[:title] %>
- dotfiles.github.io
</title>
<link href='/stylesheets/styles.css' rel='stylesheet'>
<meta content='width=device-width, initial-scale=1, user-scalable=no' name='viewport'>
<!--[if lt IE 9]>
<script src='//html5shiv.googlecode.com/svn/trunk/html5.js'></script>
<![endif]-->
<script type='text/javascript'>

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11252985-5']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
<script type='text/javascript'>
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '4f95a6a8f5a1f50e1b00004c');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
</head>
<body>
<div class='wrapper'>
<header>
<img alt='Forktocat' src='/images/forktocat.jpg'>
<h1>dotfiles.github.io</h1>
<p>
<em>Your unofficial guide to dotfiles on GitHub.</em>
</p>
</header>
<section>
<%= yield %>
</section>
<footer>
<p>
<a class='twitter-follow-button' data-show-count='false' href='https://twitter.com/octodots'>Follow @octodots</a>
</p>
<p>
<a class='twitter-share-button' data-via='octodots' href='https://twitter.com/share'>Tweet</a>
<g:plusone size='medium'></g:plusone>
</p>
<ul>
<li>Tracked by <a href="http://get.gaug.es">Gauges</a>.</li>
<li>Hosted by <a href="http://pages.github.com">Pages</a>.</li>
<li>Theme by <a href="http://github.com/orderedlist">orderedlist</a>.</li>
<li><a href="http://octodex.github.com/forktocat/">Forktocat logo</a> by <a href="https://github.com/cameronmcefee">Cameron McEfee</a>.</li>
</ul>
</footer>
</div>
<script src='/javascripts/scale.fix.js'></script>
<script src='//platform.twitter.com/widgets.js'></script>
<script type='text/javascript'>
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</body>
</html>
73 changes: 0 additions & 73 deletions layouts/default.haml

This file was deleted.

0 comments on commit 8642c8d

Please sign in to comment.