CrystalQuartz
88 строк · 3.0 Кб
1<!DOCTYPE html>
2<html>
3<head>
4<!-- Global site tag (gtag.js) - Google Analytics -->
5<script async src="https://www.googletagmanager.com/gtag/js?id=UA-121536364-1"></script>
6<script>
7window.dataLayer = window.dataLayer || [];
8function gtag(){dataLayer.push(arguments);}
9gtag('js', new Date());
10gtag('config', 'UA-121536364-1');
11</script>
12
13<meta charset="utf-8">
14
15<title><%= config.title %></title>
16<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
17
18<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
19<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
20
21<%- css('css/style') %>
22<%- css('css/highlightjs_theme') %>
23</head>
24<body>
25
26<aside id="main-sidebar">
27<h1 id="main-logo">
28<a href="https://github.com/guryanovev/CrystalQuartz" style="float: right;">
29<img src="<%-url_for('/images/GitHub-Mark-Light-32px.png') %>" />
30</a>
31
32<a href="<%- url_for() %>" id="logo"><%= config.title %></a></h1>
33
34<p id="project-info">Crystal Quartz Panel is a lightweight, completely pluggable module for displaying Quartz.NET scheduler jobs information.</p>
35
36<section id="sidebar-badges">
37<a href="https://github.com/guryanovev/CrystalQuartz/actions/workflows/build.yaml">
38<img src="https://github.com/guryanovev/CrystalQuartz/actions/workflows/build.yaml/badge.svg" alt="CI Build" style="max-width: 100%;">
39</a>
40</section>
41
42<nav id="main-navigation">
43<%
44for (var i = 0; i < site.categories.data.length; i++) {
45site.categories.data[i].customOrder = (config.category_details[site.categories.data[i].name] || {}).order || 0;
46}
47
48function getOrder(x) { return (config.category_details[x.name] || {}).order || 0; }
49var categories = site.categories.sort('customOrder'); %>
50
51<% if (categories.length) { console.log(categories); console.log(categories.sort.toString()); %>
52
53<ul>
54<% categories.each(function(category){
55
56var isCategoryPage = is_category(),
57isActiveCategory = isCategoryPage && is_current(category.path),
58showCategoryPosts = isCategoryPage ?
59isActiveCategory :
60!!category.posts.findOne({ path: page.path }); %>
61
62<li class="<%- (isActiveCategory ? 'active' : '') %>">
63<a href="<%- url_for(category.path) %>"><%- category.name %></a>
64
65<% if (showCategoryPosts && category.posts) {%>
66<ul>
67<% category.posts.each(function(post){ %>
68<li class="<%- is_current(post.path) ? 'active' : ''%>">
69<a href="<%- url_for(post.path) %>" class=""><%= post.title %></a>
70</li>
71<% })%>
72</ul>
73<% } %>
74
75</li>
76<% })%>
77</ul>
78<% } %>
79
80</nav>
81</aside>
82
83<section id="main-content">
84<%- body %>
85</section>
86
87</body>
88</html>
89