takunomi-blog/blog.tmpl

35 lines
934 B
Cheetah
Raw Normal View History

2017-11-07 11:16:35 +00:00
{{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>
2017-11-19 14:02:18 +00:00
<h1><a class="title" href="/" style="text-decoration: none; color: inherit">{{.Title}}</a></h1>
2017-11-07 11:16:35 +00:00
<div class="tagline">
<p>Develop games, play games, talk games</p>
</div>
<div class="menu">
<ul id="menu">
{{range .MenuItems}}
<li>{{ . }}</li>{{else}}<div><strong>no rows</strong></div>{{end}}
2017-11-07 11:16:35 +00:00
</ul>
</div>
2017-11-19 14:02:18 +00:00
<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>
2017-11-20 13:37:08 +00:00
{{else if eq .CurrentPage "contact"}}
<div>{{template "contact" .}}</div>
2017-11-19 14:02:18 +00:00
{{end}}
</div>
2017-11-07 11:16:35 +00:00
</body>
</html>
2017-11-19 14:02:18 +00:00
{{end}}