fixed templating
This commit is contained in:
parent
e077d0484b
commit
c5e839e13e
9 changed files with 168 additions and 91 deletions
18
templates/components/base.gohtml
Normal file
18
templates/components/base.gohtml
Normal file
|
@ -0,0 +1,18 @@
|
|||
{{ define "base" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=viewport content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Meikan data - {{ block "title" . }}Home{{ end }}</title>
|
||||
|
||||
<link rel="stylesheet" href="/static/stylesheet.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
{{ block "body" . }}{{ end }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
3
templates/pages/index.gohtml
Normal file
3
templates/pages/index.gohtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ define "body" }}
|
||||
<h1>Hello, 世界!</h1>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue