Add header go html template

This commit is contained in:
2021-12-03 04:10:14 +01:00
parent f3ed0ccc0a
commit 422bcbf82c
5 changed files with 17 additions and 0 deletions
+3
View File
@@ -1,6 +1,9 @@
<!doctype html>
<html lang="en_us">
<!-- render head -->
{{ template "head.go.tmpl" . }}
<body>
</body>
</html>
+3
View File
@@ -1,6 +1,9 @@
<!doctype html>
<html lang="en_us">
<!-- render head -->
{{ template "head.go.tmpl" . }}
<body>
<!-- render error -->
+7
View File
@@ -0,0 +1,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="{{ .Description }}"/>
<title>{{ .Title }}</title>
</head>
+3
View File
@@ -1,6 +1,9 @@
<!doctype html>
<html lang="en_us">
<!-- render head -->
{{ template "head.go.tmpl" . }}
<body>
</body>
</html>
+1
View File
@@ -14,6 +14,7 @@ import (
// Static go-templates source
//go:embed blog.go.tmpl
//go:embed error.go.tmpl
//go:embed head.go.tmpl
//go:embed index.go.tmpl
var content embed.FS