/
index.rhtml
136 lines (122 loc) · 5.54 KB
/
index.rhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
extension: html
filter:
- erb
---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>ReinH — <%= @page.title %></title>
<meta name="author" content="<%= @page.author %>">
<!-- jQuery JavaScript Framework -->
<script src="/javascript/jquery.js" type="text/javascript"></script>
<!-- Facebox jQuery Plugin -->
<script src="/javascript/jquery.dimensions.min.js" type="text/javascript"></script>
<script src="/javascript/jquery.center.js" type="text/javascript"></script>
<script src="/javascript/jquery.facebox.js" type="text/javascript"></script>
<link href="/css/facebox.css" media="screen" rel="stylesheet" type="text/css">
<!-- Blueprint CSS Framework -->
<link rel="stylesheet" href="/css/blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="/css/blueprint/print.css" type="text/css" media="print">
<!-- CodeRay syntax highlighting CSS -->
<link rel="stylesheet" href="/css/coderay.css" type="text/css">
<!-- Homepage CSS -->
<link rel="stylesheet" href="/css/site.css" type="text/css" media="screen, projection">
<!-- OpenID -->
<link rel="openid.server" href="http://www.myopenid.com/server">
<link rel="openid.delegate" href="http://ReinH.myopenid.com/">
<meta http-equiv="X-XRDS-Location" content="http://www.myopenid.com/xrds?username=ReinH.myopenid.com">
<!-- Feed Discovery -->
<link rel="alternate" type="application/atom+xml" title="RSS feed" href="http://reinh.com/feed/atom.xml">
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('a.facebox').facebox();
$('a.fig').facebox();
$('a.fig').hover(function() {
$('#' + $(this).attr('title') + ' a').addClass('hover');
}, function() {
$('#' + $(this).attr('title') + ' a').removeClass('hover');
});
});
</script>
</head>
<body>
<div class="container" <%= 'id="home"' if @page.title == "Home" %>>
<div class="column span-15 first last section" id="header">
<h1 class="title column span-4 first">
<a href="/">ReinH<small>.com</small></a>
</h1>
<div class="nav">
<ul>
<li class="column span-2 append-1"><a href="#about" onClick='document.getElementById("about").setAttribute("style", "background:#FFFFEE")'>About</a></li>
<!-- <li class="column span-2 append-1"><a href="/#recent">Recently</a></li> -->
<li class="column span-2 last <%= "active" if @page.title == "Archive" %>"><a href="/blog/archive">Archive</a></li>
</ul>
</div>
</div>
<div class="column span-15 first last">
<%= @content %>
</div>
<div class="column span-15 first last section" id="footer">
<a class="extra-quiet plain top-link" href='#header' onClick='document.getElementById("about").setAttribute("style", "background:#FFFFFF")'>[top]</a>
<div class="panel column span-8 append-2 first">
<div id="about">
<h3>About</h3>
<p>
An avid guitarist, pianist and table tennis
player, Rein writes a popular Ruby blog (you're reading it)
and speaks frequently at Ruby conferences and user groups.
</p>
<ul class="info">
<li><a href="http://feeds.feedburner.com/reinh" rel="alternate" type="application/rss+xml">Subscribe</a> <a href="http://feeds.feedburner.com/reinh" rel="alternate" type="application/rss+xml"><img src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" style="vertical-align:middle;border:0;margin:0;padding:0"></a></li>
<li><a href="http://twitter.com/reinh">Twitter Me</a></li>
</ul>
</div>
</div>
<div class="panel column span-4 plain">
<h3>People I Read</h3>
<%= BlogRoll.to_html %>
</div>
<!-- <div class="panel column last plain">
<% recent_pages = @pages.find(:all,
:in_directory => "blog",
:recursive => true,
:sort_by => 'created_at',
:reverse => true){|p| p.path !~ /\/index\.txt$/}.first(5) %>
<h3 id="footer-recent">Recently</h3>
<dl class="posts">
<% recent_pages.group_by{|p| p.created_at.strftime('%B<strong>%y</strong>').upcase}.each do |group, pages| %>
<dt class="month"><%= group %></dt>
<% pages.each do |page| %>
<dd><a href="<%= page.url %>"><%= page.title %></a></dd>
<% end %>
<% end %>
</dl>
</div> -->
<!-- <a class='extra-quiet plain top-link' href='#header'>[top]</a> -->
</div>
<div class="column span-15 first last" id="copyright">
<ul class="info extra-quiet" style="padding:0;margin:0;">
<li style="float:left;">
Created with <a href="http://webby.rubyforge.org">Webby</a>
</li>
<li style="float:right; text-align:right;">
All design & content Copyright Rein Henrichs 2008
</li>
</ul>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3065581-1");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body>
</html>