Fixed the templating system

This commit is contained in:
2022-12-07 21:51:49 -05:00
parent d56d0ba19a
commit e1b64766b6
6 changed files with 102 additions and 15 deletions

5
views/layout/footer.html Normal file
View File

@ -0,0 +1,5 @@
{{ define "layout_footer" }}
</div>
</body>
</html>
{{ end }}

View File

@ -1,11 +1,11 @@
{{ define "layout" }}
{{ define "layout_header" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ block "title" . }}{{ end }} | Raven</title>
<title>{{ .title }} | Raven</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
<link rel="stylesheet" href="/css/kraken.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
@ -14,8 +14,4 @@
{{ template "navbar" . }}
<div id="main-wrapper" class="container">
{{ block "content" . }}{{ end }}
</div>
</body>
</html>
{{ end }}