<!doctype html>
<html>
<head>
	<title>{{pageTitle}}</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	{{> favicons}}
	<link rel="stylesheet" href="{{{global.baseUrl}}}/css/bulma.min.css" crossorigin="anonymous">
	<link rel="stylesheet" href="{{{global.baseUrl}}}/css/main.css" crossorigin="anonymous">
	<link rel="stylesheet" href="{{{global.baseUrl}}}/css/fontawesome/css/all.min.css" crossorigin="anonymous">
	<script src="{{{global.baseUrl}}}/js/jquery.min.js"></script>
	<script src="{{{global.baseUrl}}}/js/main.js"></script>
	{{#cssFiles}}
		<link rel="stylesheet" href="{{{.}}}" crossorigin="anonymous">
	{{/cssFiles}}
	{{#jsFiles}}
		<script src="{{{.}}}"></script>
	{{/jsFiles}}
</head>
	<body class="page-{{{pageName}}} {{#global.isAdminPage}}is-admin-page{{/global.isAdminPage}}">
		{{> navbar}}
		<main class="main">
			<div class="container main-container">
				{{> notifications}}

				{{! ADMIN PAGE }}

				{{#global.isAdminPage}}
					{{> adminLayout}}
				{{/global.isAdminPage}}

				{{! USER PAGE - WITH SIDEBAR }}

				{{^sidebarMenu}}
					{{^global.isAdminPage}}
						{{{contentHtml}}}
					{{/global.isAdminPage}}
				{{/sidebarMenu}}

				{{! USER PAGE - NO SIDEBAR }}

				{{#sidebarMenu}}
					{{> sidebarLayout}}
				{{/sidebarMenu}}
			</div>
		</main>
		{{> footer}}
	</body>
</html>