<!doctype html>
<html lang="ro">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <% const pageTitle = typeof title !== 'undefined' ? title : ''; %>
  <% const description = typeof metaDescription !== 'undefined' ? metaDescription : 'Eventor.ro - platforma de ticketing pentru evenimente din Romania.'; %>
  <title><%= pageTitle ? pageTitle + ' | ' + appName : appName %></title>
  <meta name="description" content="<%= description %>">
  <link rel="canonical" href="<%= appUrl + currentPath %>">
  <meta property="og:title" content="<%= pageTitle || appName %>">
  <meta property="og:description" content="<%= description || 'Gasesti. Cumperi. Intri.' %>">
  <meta property="og:type" content="<%= typeof eventJsonLd !== 'undefined' ? 'event' : 'website' %>">
  <meta property="og:url" content="<%= appUrl + currentPath %>">
  <link rel="manifest" href="/public/pwa/manifest.json">
  <link rel="stylesheet" href="/public/assets/css/app.css">
  <% if (typeof eventJsonLd !== 'undefined') { %><script type="application/ld+json"><%- eventJsonLd %></script><% } %>
</head>
<body>
  <%- include('../partials/header') %>
  <main class="page">
    <% if (typeof currentPath !== 'undefined' && currentPath.indexOf('/admin') === 0) { %>
      <%- include('../partials/admin-nav') %>
    <% } %>
    <%- include('../partials/flash') %>
    <%- body || '' %>
  </main>
  <%- include('../partials/footer') %>
  <script src="/public/assets/js/app.js"></script>
</body>
</html>
