nm3clol-express-app/views/page.ejs

66 lines
2.7 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<title><%= (typeof fm.title !== 'undefined') ? `${fm.title} - ${h.getSiteName()}` : h.getSiteName() %></title>
<%- include('./includes/common-head.ejs') %>
</head>
<body onload="initPage()">
<%- include('./includes/top-navbar.ejs') %>
<%- include('./includes/no-trash-svg.ejs') %>
<main class="container">
<header>
<h1 class="mt-5" style="font-family: 'Covered By Your Grace'">
<% paths.forEach(function(value, index) { %>
<% if (h.shouldShowDirectorySeparator({index})) { %>
<span class="separator">&rsaquo; </span>
<% } %>
<% if (h.shouldOmitLinkOnLastBreadcrumb({paths, index})) { %>
<%= (typeof fm.title !== 'undefined') ? `${fm.title}` : value %>
<% } else { %>
<a href="/<%= value.replace('public', '') != '' ? value.replace('public', '') : '' %>">
<%= (value == 'public' ? h.getSiteName() : value) %>
</a>
<% } %>
<% }) %>
</h1>
</header>
<% if (typeof content !== 'undefined') {%>
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
<div class="col-lg-12 p-3 p-lg-5 pt-lg-3">
<h1 class="title"><%= (typeof fm.title !== 'undefined') ? fm.title : require('path').basename(filePath) %> </h1>
<p>
<small>
<%if (typeof fm.docDate !== 'undefined') { %><b>Document Date:</b> <%= h.moment(fm.docDate).format('MMMM D, YYYY') %><% } %>
</small>
</p>
<%- content %>
</div>
</div>
<% } %>
<ul id="files" class="list-group shadow-lg">
<% if (typeof files !== 'undefined') files.forEach(function(value, index) { %>
<li class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<a href="<%= value.relative %>" title="<%= value.title %>" class="<%= value.type %> <%= value.ext %>"><%= value.base %></a>
</div>
</li>
<% }) %>
</ul>
</main>
<%- include('./includes/bottom-navbar.ejs') %>
<!-- Bootstrap JS (optional, if you need Bootstrap JS features) -->
<script src="https://daball.me/vendor/jquery/jquery.min.js"></script>
<script src="https://daball.me/vendor/popper.js/dist/popper.min.js"></script>
<script src="https://daball.me/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="https://daball.me/vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="https://daball.me/layouts/blog/js/blog.min.js"></script>
</body>
</html>