shithub: img

ref: afba590c6314fd15f2e7489123d1f9b74d7939a6
dir: /year.tpl/

View raw version
<!DOCTYPE html>
<html>
<head>
<title>{{.Title}}</title>
<link rel="shortcut icon" href="montage.jpg">
<style>
body{
	background-color: black;
	text-align: center;
}
div>p, a{
	color: white;
}
div{
	float: left;
	text-align: center;
	padding: 0.25cm;
	width: 200px;
	height: 200px;
}
div.bordered{
	float: none;
	display: inline-block;
	width: 160px;
	height: 160px;
	padding: 0px;
	border: 1px solid white;
}
img{
	width: 160px;
	height: 160px;
}
.disabled{
	color: grey;
}
</style>
</head>
<body>
<p>
{{if .Prev}}
<a href="../{{.Prev}}/index.html">prev</a>
{{else}}
<span class="disabled">prev</span>
{{end}}
 | <a href="../index.html">index</a> | 
{{if .Next}}
<a href="../{{.Next}}/index.html">prev</a>
{{else}}
<span class="disabled">next</span>
{{end}}
</p>
{{range .Months}}
	{{if .Empty}}
		<div><div class="bordered"></div><p>{{.Name}}</p></div>
	{{else}}
		<div><a href="{{.Number}}/index.html"><img src="{{.Number}}/montage.jpg"/><p>{{.Name}}</p></a></div>
	{{end}}
{{end}}
</body>
</html>