Broke out main layout in header/footer
This commit is contained in:
parent
b80b4150d5
commit
b450ed7d2b
@ -1,11 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ .title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header" . }}
|
||||
|
||||
<p>This is a test!</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
{{ template "footer" . }}
|
||||
|
4
views/layout/footer.html
Normal file
4
views/layout/footer.html
Normal file
@ -0,0 +1,4 @@
|
||||
{{ define "footer" }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
11
views/layout/header.html
Normal file
11
views/layout/header.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "header" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>{{ .title }} | BLT</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user