Add header go html template

pull/1/head
Nikita Tokarchuk 3 years ago
parent f3ed0ccc0a
commit 422bcbf82c
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 3
      frontend/templates/blog.go.tmpl
  2. 3
      frontend/templates/error.go.tmpl
  3. 7
      frontend/templates/head.go.tmpl
  4. 3
      frontend/templates/index.go.tmpl
  5. 1
      frontend/templates/templates.go

@ -1,6 +1,9 @@
<!doctype html>
<html lang="en_us">
<!-- render head -->
{{ template "head.go.tmpl" . }}
<body>
</body>
</html>

@ -1,6 +1,9 @@
<!doctype html>
<html lang="en_us">
<!-- render head -->
{{ template "head.go.tmpl" . }}
<body>
<!-- render error -->

@ -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>

@ -1,6 +1,9 @@
<!doctype html>
<html lang="en_us">
<!-- render head -->
{{ template "head.go.tmpl" . }}
<body>
</body>
</html>

@ -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

Loading…
Cancel
Save