<!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">

	<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
	<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito">
	<link rel="stylesheet" href="/css/style.css">
	<link rel="icon" type="image/png" href="/favicon.ico">
	<script src="/js/tinymce/tinymce.min.js"></script>


	<meta name="author" content="<%= rootUrl %>">
	<meta name="keywords" content="live role play,live action role play,lrp,larp,lrp tickets,larp tickets,lrp events,larp events,live role play tickets,live action role play tickets,live role play events,live action role play events,tickets,bookings,events">
	<meta property="og:site_name" content="<%= config.siteName %>">
	<meta property="og:type" content="website">
	<meta property="og:locale" content="en_GB">
	<meta name="twitter:card" content="summary_large_image">
    <% if (typeof meta != 'undefined') { %>
	<% if (meta.crawl) { %>
	    <meta name="robots" content="noindex">
		<meta property="og:title" content="<%= config.siteName %>: <%= title %>">
		<meta name="twitter:title" content="<%= config.siteName %>: <%= title %>">
		<meta name="description" content="<%= new turndownService().turndown(config.siteDescription) %>">
		<meta property="og:description" content="<%= new turndownService().turndown(config.siteDescription)  %>">
		<meta name="twitter:description" content="<%= new turndownService().turndown(config.siteDescription) %>">
		<meta property="og:image" content="<%= `${rootUrl}/ogcard` %>">
		<meta name="twitter:image" content="<%= `${rootUrl}/ogcard` %>">
		<meta property="og:url" content="<%= rootUrl %>">
	<% } else { %>
        <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
        <meta property="og:title" content="<%= meta.title %>">
        <meta name="twitter:title" content="<%= meta.title %>">
        <meta name="description" content="<%- meta.description %>">
        <meta property="og:description" content="<%- meta.description %>">
        <meta name="twitter:description" content="<%- meta.description %>">
        <meta property="og:url" content="<%= rootUrl %>><%= meta.path %>">
        <meta property="og:image" content="<%= meta.logo ? meta.logo : `${rootUrl}/ogcard` %>">
		<meta property="twitter:image" content="<%= meta.logo ? meta.logo : `${rootUrl}/ogcard` %>">
	<% }} else { %>
            <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
            <meta property="og:title" content="<%= config.siteName %>: <%= title %>">
            <meta name="twitter:title" content="<%= config.siteName %>: <%= title %>">
            <meta name="description" content="<%= new turndownService().turndown(config.siteDescription) %>">
            <meta property="og:description" content="<%= new turndownService().turndown(config.siteDescription) %>">
            <meta name="twitter:description" content="<%= new turndownService().turndown(config.siteDescription) %>">
            <meta property="og:image" content="<%= `${rootUrl}/ogcard` %>">
            <meta name="twitter:image" content="<%= `${rootUrl}/ogcard` %>">
            <meta property="og:url" content="<%= rootUrl %>">
	<% } %>

	<title>
		<%= title==='' ? config.siteName : `${config.siteName}: ${title}` %>
	</title>
</head>

<body class="body-pd">
	<%- include('../partials/nav'); %>
	<div class="container h-100 mb-5">
		<%- include('../partials/flash')%>
		<%- body %>
	</div>
	<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
	<script src='/js/validateForms.js'></script>
</body>

</html>