You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
250 lines
12 KiB
250 lines
12 KiB
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>MyJekyllBlog<%= $title ? " - " . $title : "" %></title>
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css"
|
|
rel="stylesheet"
|
|
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
|
|
crossorigin="anonymous"
|
|
>
|
|
|
|
<!-- Favicons -->
|
|
<link rel="apple-touch-icon" href="/docs/5.0/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
|
|
<link rel="icon" href="/docs/5.0/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
|
|
<link rel="icon" href="/docs/5.0/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
|
|
<link rel="manifest" href="/docs/5.0/assets/img/favicons/manifest.json">
|
|
<link rel="mask-icon" href="/docs/5.0/assets/img/favicons/safari-pinned-tab.svg" color="#7952b3">
|
|
<link rel="icon" href="/docs/5.0/assets/img/favicons/favicon.ico">
|
|
<meta name="theme-color" content="#7952b3">
|
|
|
|
<!-- DateTime Picker -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
|
|
|
|
<!-- Custom styles for this template -->
|
|
<link href="/assets/css/dashboard.css" rel="stylesheet">
|
|
|
|
% if ( $c->stash->{http_refresh} ) {
|
|
<meta http-equiv="refresh" content="<%= $c->stash->{http_refresh} %>">
|
|
% }
|
|
|
|
% if ( $c->config->{use_plausible} ) {
|
|
<!-- Metrics with plausible-->
|
|
<script defer data-domain="<%= $c->config->{domain_for_links}" src="https://plausible.io/js/script.js"></script>
|
|
}
|
|
|
|
<!-- Markdown Editor -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
|
|
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
|
|
|
|
<!-- Syntax hilighting, used by Markdown Editor -->
|
|
<script src="https://cdn.jsdelivr.net/highlight.js/latest/highlight.min.js"></script>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/latest/styles/github.min.css">
|
|
|
|
<!-- The Markdown Editor side by side and fullscreen panels need this CSS code, otherwise the sidebar and
|
|
header overlay the editor. https://github.com/sparksuite/simplemde-markdown-editor/issues/610
|
|
-->
|
|
<style>
|
|
.editor-toolbar.fullscreen, .CodeMirror-fullscreen { z-index: 1021 !important; }
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
|
|
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="/">MyJekyllBlog</a>
|
|
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button"
|
|
data-bs-toggle="collapse"
|
|
data-bs-target="#sidebarMenu"
|
|
aria-controls="sidebarMenu"
|
|
aria-expanded="false"
|
|
aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
% if ( $c->stash->{person} ) {
|
|
<ul class="navbar-nav px-3">
|
|
<li class="nav-item text-nowrap"><a class="nav-link" href="<%= $c->url_for('do_logout') %>">Sign out</a></li>
|
|
</ul>
|
|
% } else {
|
|
<ul class="navbar-nav px-3">
|
|
<li class="nav-item text-nowrap"><a class="nav-link" href="<%= $c->url_for('show_login') %>">Login</a></li>
|
|
</ul>
|
|
% }
|
|
</header>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
|
|
<div class="position-sticky pt-3">
|
|
% if ( $c->stash->{person} ) {
|
|
<ul class="nav flex-column">
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "dashboard" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_dashboard' ) %>">
|
|
<span data-feather="home"></span>
|
|
Dashboard
|
|
</a>
|
|
</li>
|
|
% if ( $c->stash->{person}->is_admin ) {
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "admin" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_admin' ) %>">
|
|
<span data-feather="tool"></span>
|
|
Admin Dashboard
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" target="_blank" href="<%= $c->url_for( 'minion_dashboard' ) %>">
|
|
<span data-feather="command"></span>
|
|
Minion Dashboard
|
|
</a>
|
|
</li>
|
|
% }
|
|
</ul>
|
|
% }
|
|
|
|
<hr />
|
|
|
|
<ul class="nav flex-column">
|
|
% if ( ! $c->stash->{person} ) {
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "home" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_homepage' ) %>">
|
|
<span data-feather="home"></span>
|
|
Home
|
|
</a>
|
|
</li>
|
|
% }
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "about" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_about' ) %>">
|
|
<span data-feather="info"></span>
|
|
About
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "contact" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_contact' ) %>">
|
|
<span data-feather="mail"></span>
|
|
Contact
|
|
</a>
|
|
</li>
|
|
% if ( ! $c->stash->{person} ) {
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "pricing" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_pricing' ) %>">
|
|
<span data-feather="dollar-sign"></span>
|
|
Pricing
|
|
</a>
|
|
</li>
|
|
% }
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "open_source" ? "active" : "" %>" aria-current="page" href="<%= $c->url_for( 'show_open_source' ) %>">
|
|
<span data-feather="github"></span>
|
|
Open Source
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
% if ( $c->stash->{person} ) {
|
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
|
|
<span>My Info</span>
|
|
</h6>
|
|
<ul class="nav flex-column mb-2">
|
|
<!--
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "subscription" ? "active" : "" %>" href="<%= $c->url_for( 'show_subscription' ) %>">
|
|
<span data-feather="credit-card"></span>
|
|
Subscription
|
|
</a>
|
|
</li>
|
|
-->
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "profile" ? "active" : "" %>" href="<%= $c->url_for( 'show_profile' ) %>">
|
|
<span data-feather="user"></span>
|
|
Profile
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "password" ? "active" : "" %>" href="<%= $c->url_for( 'show_change_password' ) %>">
|
|
<span data-feather="lock"></span>
|
|
Change Password
|
|
</a>
|
|
</li>
|
|
% if ( $c->config->{stripe}->{enable} ) {
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "subscription" ? "active" : "" %>" href="<%= $c->url_for( 'show_subscription' ) %>">
|
|
<span data-feather="credit-card"></span>
|
|
Subscription
|
|
</a>
|
|
</li>
|
|
% }
|
|
</ul>
|
|
% } else {
|
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
|
|
<span>Your Account</span>
|
|
</h6>
|
|
<ul class="nav flex-column mb-2">
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "login" ? "active" : "" %>" href="<%= $c->url_for( 'show_login' ) %>">
|
|
<span data-feather="user"></span>
|
|
Login
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "register" ? "active" : "" %>" href="<%= $c->url_for( 'show_register' ) %>">
|
|
<span data-feather="log-in"></span>
|
|
Register
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link <%= $sb_active eq "forgot" ? "active" : "" %>" href="<%= $c->url_for( 'show_forgot' ) %>">
|
|
<span data-feather="help-circle"></span>
|
|
Forgot Password
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
% }
|
|
</div>
|
|
</nav>
|
|
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
|
<%= content %>
|
|
</main>
|
|
</div>
|
|
<div class="row" style="height: 15em"> <!-- Don't bottom out -->
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"
|
|
integrity="sha512-aVKKRRi/Q/YV+4mjoKBsE4x3H+BkegoM/em46NNlCqNTmUYADjBbeNefNxYV7giUp0VxICtqdrbqU7iVaeZNXA=="
|
|
crossorigin="anonymous"
|
|
referrerpolicy="no-referrer">
|
|
</script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
|
|
crossorigin="anonymous">
|
|
</script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js"
|
|
integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE"
|
|
crossorigin="anonymous">
|
|
</script>
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"
|
|
integrity="sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha"
|
|
crossorigin="anonymous">
|
|
</script>
|
|
<script src="/assets/js/dashboard.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
var simplemde = new SimpleMDE({
|
|
element: document.getElementById("markdown_editor_panel"),
|
|
promptURLs: true,
|
|
codeSyntaxHighlighting: true,
|
|
});
|
|
|
|
$(document).ready(function () {
|
|
flatpickr('.datepicker', {
|
|
enableTime: true,
|
|
dateFormat: "Y-m-d H:i",
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|