summary refs log tree commit diff
path: root/template/monthly.ht
blob: ae7e992c8c61d90b5232c1de8e5b43559a53a327 (plain) (blame)
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
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Trivium: ${self[:month]}</title>
    <link rel="icon" href="trivium.ico">
$ if self[:entries].first[:prev_by_month]
    <link rel="prev" href="${self[:entries].first[:prev_by_month]}">
$ end
$ if self[:entries].first[:next_by_month]
    <link rel="next" href="${self[:entries].first[:next_by_month]}">
$ end
    <link rel="up" href="./">
    <link rel="stylesheet" href="style.css">
    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://chneukirchen.org/trivium/index.atom">
  </head>
  <body>

<div class="hfeed">
<h1><a href="./"><img src="trivium.png" alt="Trivium"></a></h1>

<small class="top nav">
$ if self[:entries].first[:prev_by_month]
<a class="prev" href="${self[:entries].first[:prev_by_month]}">&#xab; ${Time.parse(self[:entries].first[:prev_by_month] + "-01").strftime("%B %Y")}</a>
$ end

$ if self[:entries].first[:next_by_month]
<a class="next" href="${self[:entries].first[:next_by_month]}">${Time.parse(self[:entries].first[:next_by_month] + "-01").strftime("%B %Y")} &#xbb;</a>
$ end
</small>

$ self[:entries].each { |entry|
<div class="hentry">
<h2 class="entry-title">
  <a href="${entry[:id]}" rel="bookmark">
    <abbr class="published" title="${entry[:date].iso8601}">
      ${entry[:title]}
    </abbr>
  </a>
</h2>

<div class="entry-content">
$:{format entry}
</div>
</div>
$ }

<small class="bot nav">
$ if self[:entries].first[:prev_by_month]
<a class="prev" href="${self[:entries].first[:prev_by_month]}">&#xab; ${Time.parse(self[:entries].first[:prev_by_month] + "-01").strftime("%B %Y")}</a>
$ end

$ if self[:entries].first[:next_by_month]
<a class="next" href="${self[:entries].first[:next_by_month]}">${Time.parse(self[:entries].first[:next_by_month] + "-01").strftime("%B %Y")} &#xbb;</a>
$ end
</small>

<address class="author vcard">
Copyright &#169; 2008, 2009, 2010 <a class="email fn" href="mailto:chneukirchen@gmail.com">Christian Neukirchen</a>
</address>

</div>
</body>
</html>