Fixed the templating system
This commit is contained in:
5
views/layout/footer.html
Normal file
5
views/layout/footer.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{ define "layout_footer" }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
@ -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 }}
|
Reference in New Issue
Block a user