jekyll-theme-centos 2.27.0 → 2.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3b2058ed3827106648c9012f5dd7ea4922af044c034f84b71c612938d7e1d7a
4
- data.tar.gz: 415e76f525b5ff2a35cfba321d46441e9469502e2628d62b35afef7c67370903
3
+ metadata.gz: a75427b10ed095fdb4787fd09023314b57c45d1de172f8f863cd0e94b3766803
4
+ data.tar.gz: 202b61eccfbdbc95025e84eef6421896e16819851123d3a8749a8572b774af6d
5
5
  SHA512:
6
- metadata.gz: 9858b891564be6218ccf0fd6b87fdf094b449fb82998c15fb62bed0ab981b3acaf7d4d474a866d6c69b4db1af65416ab8f92cbb9a5c6fd01075d53be81d906d3
7
- data.tar.gz: 277c90380ab9ed318391efd3d41bca1c8736d4f883be7c6209d40fd0e8c6e7c9b00e3cc2388acee4ee5acbcd042b4dd4f8261c499fc26116e202cb8001730f2a
6
+ metadata.gz: 8cb71ed909e29ed0fc65b16642fc8672a4f99d00d0efae2e4d0a6f074af28648029ce076b1bc6212633ad0eb84916b993df124dda9b151b91a4fa5dcb6d79012
7
+ data.tar.gz: 9b83a7f505197de3598d4bd341019e8f08aa3606de6fe24633cc2ed75db01852e2000e1dd1a638ad4a870daaefe12ecc4d7cd9afa3bd59a7915852f94d00005d
data/_config.yml CHANGED
@@ -14,12 +14,6 @@
14
14
  # https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
15
15
  # https://learnxinyminutes.com/docs/yaml/
16
16
 
17
- # site.manifestation - Set the name of the visual manifestation you are
18
- # providing a site for. The theme presents this name on the right side of the
19
- # CentOS logo. If this value is not empty, the navbar data must be related to
20
- # the specific visual manifestation.
21
- manifestation: ""
22
-
23
17
  # site.navbar_data_dirname - Set the directory name where the navbar data files
24
18
  # is stored. For example, if the navbar file is at `_data/base/navbar.yml', the
25
19
  # value you need to provide is `base'.
@@ -31,45 +25,59 @@ navbar_data_dirname: "base"
31
25
  # jekyll-theme-centos-base component, specifcally in the file
32
26
  # `src/YAML/navbar_www.yml'. The CentOS navbar is the one shipped in
33
27
  # jekyll-theme-centos by default.
34
- navbar_data_filename: "navbar_www"
28
+ navbar_data_filename: "navbar"
35
29
 
36
30
  defaults:
37
31
  - scope:
38
32
  path: "" # an empty string here means all files in the project.
39
33
  values:
40
34
  layout: "base/default"
35
+ # ----------------------------------------------------------------
36
+ # Nav
37
+ # ----------------------------------------------------------------
38
+ with_logo: "centos-whitelogo.svg"
39
+ with_manifestation: ""
40
+ # ----------------------------------------------------------------
41
+ # Header
42
+ # ----------------------------------------------------------------
43
+ with_header: true
44
+ with_motif: "centos-motif.png"
45
+ with_title: true
46
+ with_preamble: true
47
+ with_announcements: {}
48
+ # ----------------------------------------------------------------
49
+ # Main
50
+ # ----------------------------------------------------------------
41
51
  with_breadcrumbs: true
42
- with_toc: true
52
+ with_toc: false
53
+ with_artwork: false
54
+ with_content: true
55
+ # ----------------------------------------------------------------
56
+ # Footer
57
+ # ----------------------------------------------------------------
58
+ with_shortcuts: true
59
+ with_sponsors: false
60
+ with_social: true
61
+ with_finale: true
62
+ with_copyright: true
63
+ # ----------------------------------------------------------------
64
+ # Script (also changes Head, to manage script-related stylesheets)
65
+ # ----------------------------------------------------------------
66
+ with_highlight: false
43
67
  with_datatables: false
44
- with_clipboard: false
45
- with_announcements: {}
46
68
 
47
69
  plugins:
48
70
  - jekyll-feed
49
71
  - jekyll-toc
50
72
  - jekyll-paginate-v2
51
73
 
52
- permalink: /:path/:basename/index.html
74
+ permalink: /:path/:basename/
53
75
 
54
76
  collections:
55
77
  sponsors:
56
78
  posts:
57
79
  permalink: /:categories/:title/
58
80
 
59
- exclude:
60
- - .bundle
61
- - .git
62
- - .sass-cache/
63
- - .jekyll-cache/
64
- - gemfiles/
65
- - Gemfile
66
- - Gemfile.lock
67
- - node_modules/
68
- - vendor/bundle/
69
- - vendor/cache/
70
- - vendor/gems/
71
- - vendor/ruby/
72
-
73
81
  sass:
74
82
  style: compressed
75
83
  sass_dir: _sass
@@ -0,0 +1,12 @@
1
+ <div class="row py-3">
2
+ <div class="col">
3
+ <span>Copyright &copy;</span>
4
+ <span id="copyright_year"></span>
5
+ <span>{{ site.data.base.footer.copyright.author }}</span>
6
+ {% for item in site.data.base.footer.copyright.legals -%}
7
+ <span class="border-start ms-2 ps-2">
8
+ <a class="link-light" href="{{ item.link }}">{{ item.text }}</a>
9
+ </span>
10
+ {% endfor %}
11
+ </div>
12
+ </div>
@@ -0,0 +1,17 @@
1
+ <div class="row {% if page.with_sponsors != false %}border-top border-primary border-5 {% endif %}pt-3">
2
+ <div class="col-sm-12{% if page.with_social != false %} col-lg-8{% endif %}">
3
+ <h4>{{ site.title }}</h4>
4
+ <p>{{ site.description }}</p>
5
+ </div>
6
+ {% if page.with_social != false %}
7
+ <div class="col-sm-12 col-lg-4 d-flex justify-content-sm-start justify-content-lg-end">
8
+ <ul class="nav list-unstyled">
9
+ {% for item in site.data.base.footer.social -%}
10
+ <li class="nav-item">
11
+ <a class="btn btn-sm fs-5 link-primary" href="{{ item.link }}" role="button" aria-label="{{ item.name }}" data-bs-placement="bottom" data-bs-title="{{ item.name }}"><i class="{{ item.icon }}"></i></a>
12
+ </li>
13
+ {% endfor %}
14
+ </ul>
15
+ </div>
16
+ {% endif %}
17
+ </div>
@@ -14,8 +14,8 @@
14
14
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/{{ page.with_highlight | default('default') }}.min.css">
15
15
  <link rel="stylesheet" href="https://unpkg.com/highlightjs-copy@1.0.3/dist/highlightjs-copy.min.css" />
16
16
  {% endif -%}
17
- {% if page.with_datatables == true -%}
18
- <link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}/assets/css/dataTables.bootstrap5.min.css">
17
+ {% if page.with_datatables != false -%}
18
+ <link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap5.min.css" />
19
19
  {% endif -%}
20
20
  <link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}/assets/css/base/stylesheet.min.css" />
21
21
  </head>
@@ -2,15 +2,17 @@
2
2
  <div class="container py-5">
3
3
  {% if page.with_announcements and page.with_announcements.size > 0 -%}
4
4
  <div class="row">
5
- <div class="col">
6
- {% include base/announcements.html %}
7
- </div>
5
+ {% include base/announcements.html %}
8
6
  </div>
9
7
  {% endif -%}
10
8
  <div class="row my-3 justify-content-center">
11
9
  <div class="col-sm-12 col-xl-8">
12
- <div class="display-4 fw-bold mb-3">{{ page.title }}</div>
10
+ {% if page.with_title != false -%}
11
+ <h1 class="display-4 fw-bold">{{ page.title }}</h1>
12
+ {% endif -%}
13
+ {% if page.with_preamble != false -%}
13
14
  <div class="lead">{{ page.title_lead }}</div>
15
+ {% endif %}
14
16
  </div>
15
17
  </div>
16
18
  </div>
@@ -1,7 +1,7 @@
1
1
  {% assign navbar = site.data[site.navbar_data_dirname][site.navbar_data_filename] %}
2
2
  <nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-dark shadow">
3
3
  <div class="container">
4
- <a class="navbar-brand pt-1" href="{{ site.baseurl }}/"><img role="img" src="{{ site.baseurl }}/{{ site.data.base.identity.logo.navbar }}" height="32" alt="{{ site.title }}" />{% if site.manifestation != "" %}<span class="manifestation border-start border-light ps-3 ms-3 py-2 fs-6">{{ site.manifestation }}</span>{% endif %}</a>
4
+ <a class="navbar-brand pt-1" href="{{ site.baseurl }}/"><img role="img" src="{{ site.baseurl }}/{{ site.data.base.identity.logo.navbar }}" height="32" alt="{{ site.title }}" />{% if page.with_manifestation != "" %}<span class="manifestation border-start border-light ps-3 ms-3 py-2 fs-6">{{ page.with_manifestation }}</span>{% endif %}</a>
5
5
  <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
6
6
  <span class="navbar-toggler-icon"></span>
7
7
  </button>
@@ -1,8 +1,9 @@
1
- <!-- Highlight.js -->
2
1
  {% if page.with_highlight != false -%}
2
+ <!-- Highlight.js -->
3
3
  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
4
4
  <script src="https://unpkg.com/highlightjs-copy@1.0.3/dist/highlightjs-copy.min.js"></script>
5
5
  <script>
6
+ document.querySelectorAll('.content code').forEach(el=>el.classList.add('hljs'));
6
7
  hljs.addPlugin(
7
8
  new CopyButtonPlugin({
8
9
  callback: (text, el) => console.log("Copied!", text),
@@ -12,20 +13,23 @@
12
13
  </script>
13
14
  {% endif -%}
14
15
 
15
- {% if page.with_datatables == true -%}
16
+ {% if page.with_datatables != false -%}
16
17
  <!-- DataTables -->
17
- <script src="{{ site.url }}{{ site.baseurl }}/assets/js/jquery.min.js"></script>
18
- <script src="{{ site.url }}{{ site.baseurl }}/assets/js/jquery.dataTables.min.js"></script>
19
- <script src="{{ site.url }}{{ site.baseurl }}/assets/js/dataTables.bootstrap5.min.js"></script>
18
+ <script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
19
+ <script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.js"></script>
20
+ <script src="https://cdn.datatables.net/1.13.5/js/dataTables.bootstrap5.min.js"></script>
20
21
  <script>
21
22
  $(document).ready(function () {
22
- $("#download-mirror").DataTable();
23
+ $("#dataTable").DataTable({
24
+ "pageLength": 5,
25
+ "lengthMenu": [5,10,25,50,75,100]
26
+ });
23
27
  });
24
28
  </script>
25
- {% endif -%}
29
+ {% endif %}
26
30
 
27
31
  <!-- BackToTop -->
28
- <script src="{{ site.url }}{{ site.baseurl }}/assets/js/vanilla-back-to-top.min.js"></script>
32
+ <script src="https://unpkg.com/vanilla-back-to-top@7.2.1/dist/vanilla-back-to-top.min.js"></script>
29
33
  <script>
30
34
  addBackToTop({
31
35
  diameter: 56,
@@ -42,6 +46,14 @@
42
46
  <!-- Bootstrap -->
43
47
  <script src="{{ site.url }}{{ site.baseurl }}/assets/js/bootstrap.bundle.min.js"></script>
44
48
  <script>
49
+ // Initialize styles for content tables
50
+ var tables = document.querySelectorAll(".content table");
51
+ var theads = document.querySelectorAll(".content table thead");
52
+ var images = document.querySelectorAll(".content img");
53
+ var i;
54
+ for(i = 0; i < tables.length; i++) { tables[i].className += "table table-bordered"; }
55
+ for(i = 0; i < theads.length; i++) { theads[i].className += "table-light"; }
56
+ for(i = 0; i < images.length; i++) { images[i].className += "figure-img img-fluid rounded"; }
45
57
  // Initialize Tooltips
46
58
  const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
47
59
  const tooltipList = [...tooltipTriggerList].map((tooltipTriggerEl) => new bootstrap.Tooltip(tooltipTriggerEl));
@@ -0,0 +1,27 @@
1
+ {% assign navbar = site.data[site.navbar_data_dirname][site.navbar_data_filename] %}
2
+ <div class="row bg-primary justify-content-between">
3
+ {% assign sections = navbar | where: "visible_on", "footer" %}
4
+ {% assign columns = sections.size %}
5
+ {% case columns %}
6
+ {% when 1 %}
7
+ {% assign column_width = 12 %}
8
+ {% when 2 %}
9
+ {% assign column_width = 6 %}
10
+ {% when 3 %}
11
+ {% assign column_width = 4 %}
12
+ {% when 4 %}
13
+ {% assign column_width = 3 %}
14
+ {% else %}
15
+ {% assign column_width = 1 %}
16
+ {% endcase %}
17
+ {% for section in sections -%}
18
+ <div class="col-sm-12 col-lg-{{ column_width }} my-3">
19
+ <h6 class="fw-bold"><i class="{{ section.icon }}"></i> {{ section.name }}</h6>
20
+ <ul class="nav flex-column">
21
+ {% for item in section.menu -%}
22
+ <li class="nav-item"><a href="{{ site.baseurl }}{{ item.link }}" class="link-light px-0">{{ item.name }}</a></li>
23
+ {% endfor %}
24
+ </ul>
25
+ </div>
26
+ {% endfor %}
27
+ </div>
@@ -2,33 +2,67 @@
2
2
  <html lang="{{ page.lang | default: 'en' }}">
3
3
  {% include base/head.html title=page.title -%}
4
4
  <body id="top">
5
- {% include base/navbar.html -%}
5
+ {% include base/nav.html -%}
6
+ {% if page.with_header == true %}
6
7
  {% include base/header.html -%}
7
- <main>
8
- <div class="container my-5">
9
- {% if page.with_breadcrumbs %}
10
- <div class="row justify-content-center my-4">
11
- <div class="col-sm-12 col-xl-8">
12
- {% include base/breadcrumbs.html %}
13
- </div>
8
+ {% endif %}
9
+ <main class="container my-5">
10
+
11
+ {% if page.with_breadcrumbs == true %}
12
+ <div class="row justify-content-center my-4">
13
+ <div class="col-sm-12 col-xl-8">
14
+ {% include base/breadcrumbs.html %}
14
15
  </div>
15
- {% endif %}
16
- {% if page.with_toc %}
17
- <div class="row justify-content-center my-4">
18
- <div class="col-sm-12 col-xl-8">
19
- {% include base/toc-accordion.html %}
20
- </div>
16
+ </div>
17
+ {% endif %}
18
+
19
+ {% if page.with_toc == true %}
20
+ <div class="row justify-content-center my-4">
21
+ <div class="col-sm-12 col-xl-8">
22
+ {% include base/toc-accordion.html %}
21
23
  </div>
22
- {% endif %}
23
- <div class="row justify-content-center my-4">
24
- {% if page.with_image %}
25
- <div class="col-sm-12 col-xl-8 artwork"><img src="{{ site.url }}{{ site.baseurl }}/assets/img/{{ page.with_image }}" class="img-fluid rounded" alt="{{ page.title }}"></div>
26
- {% endif %}
27
- <div class="col-sm-12 col-xl-8 content">{{ content }}</div>
24
+ </div>
25
+ {% endif %}
26
+
27
+ {% if page.with_artwork != false %}
28
+ <div class="row justify-content-center my-4">
29
+ <div class="col-sm-12 col-xl-8 artwork"><img src="{{ site.url }}{{ site.baseurl }}/assets/img/{{ page.with_artwork }}" class="img-fluid rounded" alt="{{ page.title }}"></div>
30
+ </div>
31
+ {% endif %}
32
+
33
+ {% if page.with_content == true %}
34
+ <div class="row justify-content-center my-4">
35
+ <div class="col-sm-12 col-xl-8 content">
36
+ {{ content }}
28
37
  </div>
29
38
  </div>
39
+ {% endif %}
40
+
30
41
  </main>
31
- {% include base/footer.html -%}
42
+
43
+ <footer class="footer small bg-dark text-light">
44
+ <div class="container">
45
+
46
+ {% if page.with_shortcuts != false %}
47
+ {% include base/shortcuts.html %}
48
+ {% endif %}
49
+
50
+ {% if page.with_sponsors != false %}
51
+ {% include sponsors/carousel.html -%}
52
+ {% endif %}
53
+
54
+ {% if page.with_finale != false %}
55
+ {% include base/finale.html %}
56
+ {% endif %}
57
+
58
+ {% if page.with_copyright != false %}
59
+ {% include base/copyright.html %}
60
+ {% endif %}
61
+
62
+ </div>
63
+ </footer>
64
+
32
65
  {% include base/script.html -%}
66
+
33
67
  </body>
34
68
  </html>
@@ -51,11 +51,13 @@ main {
51
51
  // Highlightjs-copy
52
52
  // --------------------------------------------------------------------------------
53
53
  .content {
54
- pre.highlight {
54
+ code.hljs {
55
+ border-radius: var(--bs-border-radius);
56
+ }
57
+ pre {
55
58
  code.hljs {
56
59
  max-height: 50vh;
57
60
  overflow: auto;
58
- border-radius: var(--bs-border-radius);
59
61
  }
60
62
  button.hljs-copy-button {
61
63
  --hljs-theme-background: var(--bs-body-color);
@@ -63,6 +65,23 @@ main {
63
65
  }
64
66
  }
65
67
 
68
+ // --------------------------------------------------------------------------------
69
+ // Alerts
70
+ // --------------------------------------------------------------------------------
71
+ .content {
72
+ p {
73
+ &.alert {
74
+ padding-left: 3.4rem;
75
+ border-left: 3px solid;
76
+ background-repeat: no-repeat;
77
+ background-position: 1rem 1rem;
78
+ }
79
+ &.alert-danger {
80
+ background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="1.5em" fill="%2358151c" viewBox="0 0 512 512"%3E%3C!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/%3E%3C/svg%3E');
81
+ }
82
+ }
83
+ }
84
+
66
85
  // --------------------------------------------------------------------------------
67
86
  // Tuneup first paragraph top margin when it is the first element inside
68
87
  // content.
@@ -70,22 +89,12 @@ main {
70
89
  .content > p:first-child {
71
90
  margin-top: 3rem;
72
91
  }
73
-
74
92
  // --------------------------------------------------------------------------------
75
- // DataTable
93
+ // DataTables
76
94
  // --------------------------------------------------------------------------------
77
- .dataTables_wrapper {
78
- .dataTables_filter {
79
- text-align: end;
80
- }
81
- .dataTables_length,
82
- .dataTables_filter {
83
- @extend .my-3;
84
- }
85
- .form-select,
86
- .form-control {
87
- width: auto;
88
- display: inline-block;
95
+ div.dataTables_wrapper {
96
+ div.dataTables_info {
97
+ padding-top: 0;
89
98
  }
90
99
  }
91
100
  }
Binary file
Binary file
Binary file
Binary file
Binary file