feat: layout html
This commit is contained in:
19
templates/layout/base.html
Normal file
19
templates/layout/base.html
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{{ define "base" }}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>{{ .Title }}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
{{ block "content" . }}{{ end }}
|
||||||
|
</main>
|
||||||
|
{{ template "footer" . }}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
{{ end }}
|
||||||
|
|
4
templates/layout/footer.html
Normal file
4
templates/layout/footer.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{{ define "footer" }}
|
||||||
|
<footer><p>© 2025 HSP Guard</p></footer>
|
||||||
|
{{ end }}
|
||||||
|
|
Reference in New Issue
Block a user