-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.old
47 lines (44 loc) · 1.78 KB
/
index.old
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
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-type" />
<title>
blay
</title>
<meta content="Magnus (http://blay.se)" name="author" />
<link href="/atom.xml" rel="alternate" title="blay.se" type="application/atom+xml" />
<link href="/css/site.css" rel="stylesheet" type="text/css" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<script src="/js/flattr.js" type="text/javascript"></script>
</head>
<body>
<div id="everything">
<div class="tagline">
blay.se:: <a href="/">blog</a>:<a href="/papers.html">papers</a>:<a href="http://www.twitter.com/monki">@monki</a>
</div>
<div class="content">
.post
.meta
= link_to('about', '/about.html')
%form#search{ :method => 'get', :action => 'http://www.google.com/search' }
%input.text{ :type => 'text', :name => 'q' }
%input{ :type => 'hidden', :name => 'sitesearch', :value => 'blay.se' }
%input.button{ :type => 'submit', :value => 'Sök' }
.break // // //
%a(class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://www.blay.se")
- current_year = nil # ugly, but good enough
- group_posts_by_month_and_day(site.posts) do |year, month, posts|
- if current_year != year
- current_year = year
.year= year.to_s[-4, 4]
%dl
%dt= posts.first.date.strftime("%B")
- for post in posts
%dd
%strong.day= post.date.strftime('%d')
%a{:href => post.url}= post.title
</div>
</div>
</body>
</html>