CrystalQuartz

Форк
0
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>
7
        window.dataLayer = window.dataLayer || [];
8
        function gtag(){dataLayer.push(arguments);}
9
        gtag('js', new Date());
10
        gtag('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
      <% 
44
	  for (var i = 0; i < site.categories.data.length; i++) {
45
		site.categories.data[i].customOrder = (config.category_details[site.categories.data[i].name] || {}).order || 0;
46
	  }
47
	  
48
	  function getOrder(x) { return (config.category_details[x.name] || {}).order || 0; }
49
		var 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

56
            var isCategoryPage = is_category(),
57
                isActiveCategory = isCategoryPage && is_current(category.path),
58
                showCategoryPosts = isCategoryPage ?
59
                  isActiveCategory :
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

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.