-
Notifications
You must be signed in to change notification settings - Fork 20
/
wrapper.tt
87 lines (85 loc) · 3.09 KB
/
wrapper.tt
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
<!DOCTYPE html>
<html>
<head>
<title>[% title %]</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<link href="atom.xml" rel="alternate" title="[% plerd.title %]" type="application/atom+xml">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<style>
.page-header h1 :link, .page-header h1 :visited {
color: black;
}
.sidebar h1 {
font-size: 1.5em;
}
img.author-link {
width: 20px;
}
.sidebar section {
margin-top: 2em;
}
img {
width: 100%;
}
</style>
</head>
<body>
<div class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="recent.html">[% plerd.title %]</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="archive.html">Archive</a></li>
<li><a href="atom.xml">RSS</a></li>
</ul>
</div><!--/.navbar-collapse -->
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-9">
[% content %]
</div>
<div class="col-sm-3 sidebar">
<section>
<h1>Hello</h1>
<p>
This is a blog by <a href="mailto:[% plerd.author_email %]">[% plerd.author_name %]</a>.
</p>
</section>
<section>
<h1>Search</h1>
<form action="https://duckduckgo.com" method="get">
<input name="q" type="text" placeholder="Search this blog" />
<input name="sites" type="hidden" value="[% plerd.base_uri %]" />
<input type="submit" value="Go" />
</form>
</section>
<section>
<h1>Recent Posts</h1>
<ul>
[% FOR post IN plerd.recent_posts %]
<li><a href="[% post.uri %]">[% post.title %]</a></li>
[% END %]
</ul>
</section>
</div>
</div>
<footer style="font-size:small; font-style:italic" class="container">
<hr />
<p>Powered by <a href="http://jmac.org/plerd">Plerd</a>.</p>
</footer>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery.js"></script>
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</body>
</html>