takunomi-blog/blog.tmpl

33 lines
874 B
Cheetah

{{define "blog"}}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{.Title}}</title>
<!--<link rel="stylesheet" href="style.css">-->
<style>{{template "style"}}</style>
</head>
<body>
<h1><a class="title" href="/" style="text-decoration: none; color: inherit">{{.Title}}</a></h1>
<div class="tagline">
<p>Develop games, play games, talk games</p>
</div>
<div class="menu">
<ul id="menu">
{{range .MenuItems}}
<li class="menuElement">{{ . }}</li>{{else}}<div><strong>no rows</strong></div>{{end}}
</ul>
</div>
<div class="contents">
{{if eq .CurrentPage "blog"}}
<article class="posts">{{template "content" .}}</article>
{{else if eq .CurrentPage "about"}}
<div>{{template "about" .}}</div>
{{else if eq .CurrentPage "past"}}
<div>{{template "past" .}}</div>
{{end}}
</div>
</body>
</html>
{{end}}