Add Template layouts, load session hashkey

This commit is contained in:
Wancat
2022-11-04 22:44:25 +08:00
parent bc1095fc61
commit bca1735393
7 changed files with 77 additions and 38 deletions

View File

@@ -5,7 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
{{ block "main" . }}
<nav>
{{ with .User }}
{{ .Email }}
{{ end }}
</nav>
{{ block "main" .Data }}
{{ end }}
</body>