takunomi-blog/blog.tmpl

24 lines
630 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>
<h1><a 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>
<article class="posts">{{template "content" .}}</article>
</body>
</html>
{{end}}