blog/static/index.tmpl

32 lines
785 B
Cheetah

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Blog</title>
<link rel="icon" href="data:,">
<link rel="stylesheet" href="sakura.css"/>
<style>
.tag {
font-size: .7em;
}
.right {
float: right;
}
.title {
text-align: center;
font-size: 2.5em;
}
</style>
</head>
<body>
<h1 class="title">Blog Posts</h1>
{{range .Blog.SortedPosts}}
<h5>
<a href="{{.Slug}}"><strong>{{.Title}}</strong></a><br/>
<small>@{{.Author}}</small><span class="right">{{.Date.Format "Jan 2, 2006"}}</span><br/>
{{range .Tags}}<code class="tag">{{.}}</code> {{end}}
</h5>
<hr/>
{{end}}
</body>
</html>