jekyll-theme-centos 2.3.0.beta.88 → 2.3.0.beta.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95f5f75327a55bc5c20e986116f68bdcc8c0ace0add3486f9b357db36509f7e4
4
- data.tar.gz: 610aeae9a571f792785ad6e13d05919142ff10ca8387b9908972055c1c7dffb0
3
+ metadata.gz: f2182ef204afa4704015c94451620f50ce6a8a4ad5bfc3e58adfa3d315d4c25a
4
+ data.tar.gz: 80b374e32efcaa257ae5f8c890a00f70dc7b91eda46ecdf1a53aff6742840de3
5
5
  SHA512:
6
- metadata.gz: a625de3695c6163bf48647b5f4d1ffc6c35f8deebadc859e70e69d5feb4f9bda55056e5d6b054367f98930ec16a84083b050d915e870945a14b35937d3360de6
7
- data.tar.gz: b222a1dd15cebd18d984438da0395658d535c729a5059cead2dabf32aa839b17bde5415ccd75372d9107fc0649afd9c1f0f2fdc2350f30fe153b79e7160bd0e8
6
+ metadata.gz: 2eeb8d3469b8b87ef4f511936ffeae3eef99ede3333ea16e5645dc8d4ad9ecbe1cea5b3be62a76729858ecf40ac9305d4b50f22c3b19d83ce8f606d02e331982
7
+ data.tar.gz: c8b5475ecea55f0001659d85a2f66ce24108b2bbadac6fb1ee20db87796d9fae8d3477a58d3e5b6543828eb658b2917352684b441056df9979eae019b901563c
@@ -1,6 +1,6 @@
1
- {% for alert in page.with_announcements %}
2
- <div class="alert alert-primary alert-dismissible fade show shadow" role="alert">
3
- <strong>{{ alert.title }}</strong> {{ alert.content }}
1
+ {% for alert in page.with_announcements -%}
2
+ <div class="alert alert-{{ alert.color | default: 'primary' }} alert-dismissible fade show shadow" role="alert">
3
+ <strong>{{ alert.title | default: "" }}</strong> {{ alert.content | default: "" }}
4
4
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
5
5
  </div>
6
- {% endfor %}
6
+ {% endfor -%}
data/_includes/head.html CHANGED
@@ -10,5 +10,8 @@
10
10
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900" />
11
11
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Overpass+Mono:100,200,300,400,500,600,700,800,900" />
12
12
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
13
+ {% if page.with_datatable == true -%}
14
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/dataTables.bootstrap5.min.css">
15
+ {% endif -%}
13
16
  <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/stylesheet.min.css" />
14
17
  </head>
@@ -1,7 +1,17 @@
1
- {% if page.layout == "home" %}
2
- {% include home/header.html %}
3
- {% elsif page.layout == "blog" %}
4
- {% include blog/header.html %}
5
- {% else %}
6
- {% include default/header.html %}
7
- {% endif %}
1
+ <div class="bg-image bg-dark text-light">
2
+ <div class="container py-5">
3
+ {% if page.with_announcements and page.with_announcements.size > 0 -%}
4
+ <div class="row">
5
+ <div class="col">
6
+ {% include announcement.html %}
7
+ </div>
8
+ </div>
9
+ {% endif -%}
10
+ <div class="row my-3">
11
+ <div class="col">
12
+ <div class="display-4 fw-bold">{{ page.title }}</div>
13
+ <div class="lead">{{ page.title_lead }}</div>
14
+ </div>
15
+ </div>
16
+ </div>
17
+ </div>
@@ -1,7 +1,7 @@
1
1
  <div class="accordion my-3" id="pageTocAccordion">
2
- <div class="accordion-item">
2
+ <div class="accordion-item shadow-sm">
3
3
  <div class="accordion-header" id="flush-headingOne">
4
- <button class="accordion-button collapsed py-1" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">Table of contents</button>
4
+ <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">Table of contents</button>
5
5
  </div>
6
6
  <div id="flush-collapseOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#pageTocAccordion">
7
7
  <div class="accordion-body">{% include toc.html html=content %}</div>
@@ -30,7 +30,10 @@ main {
30
30
  // Backgrounds
31
31
  // --------------------------------------------------------------------------------
32
32
  .bg-image {
33
- background: url(../img/centos-motif.png) right center / cover;
33
+ background-image: url("../img/centos-motif.png");
34
+ background-size: cover;
35
+ background-repeat: no-repeat;
36
+ background-position: center;
34
37
  }
35
38
 
36
39
  .bg-light-radial-gradient {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-centos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.beta.88
4
+ version: 2.3.0.beta.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Release
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-01 00:00:00.000000000 Z
11
+ date: 2023-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,15 +52,7 @@ files:
52
52
  - _data/full-altarchlist.csv
53
53
  - _data/full-mirrorlist.csv
54
54
  - _includes/announcement.html
55
- - _includes/blog/header.html
56
55
  - _includes/breadcrumbs.html
57
- - _includes/default/alert-danger.html
58
- - _includes/default/alert-info.html
59
- - _includes/default/alert-success.html
60
- - _includes/default/alert-warning.html
61
- - _includes/default/figure.html
62
- - _includes/default/header.html
63
- - _includes/default/video.html
64
56
  - _includes/download/cards-body-convert.html
65
57
  - _includes/download/cards-body-doc.html
66
58
  - _includes/download/cards-body-eol.html
@@ -75,7 +67,6 @@ files:
75
67
  - _includes/download/cards.html
76
68
  - _includes/editbar.html
77
69
  - _includes/footer.html
78
- - _includes/head-datatables.html
79
70
  - _includes/head.html
80
71
  - _includes/header.html
81
72
  - _includes/home/distributions.html
@@ -93,9 +84,7 @@ files:
93
84
  - _includes/people/support.html
94
85
  - _includes/post-nav-explorer.html
95
86
  - _includes/post-nav.html
96
- - _includes/post/header.html
97
87
  - _includes/script.html
98
- - _includes/search.html
99
88
  - _includes/toc-accordion.html
100
89
  - _includes/toc.html
101
90
  - _layouts/blog.html
@@ -1,22 +0,0 @@
1
- <header class="header header__blog">
2
-
3
- {% if paginator.previous_page_path %}
4
- <a href="{{ paginator.previous_page_path }}"><div class="header__blog__older"><i class="fas fa-arrow-left"></i></div></a>
5
- {% else %}
6
- <div class="header__blog__older header__blog__older--disabled"><i class="fas fa-arrow-left"></i></div>
7
- {% endif %}
8
-
9
- <section class="header__blog__present">
10
- <h1 class="header__blog__title">{{ page.title }}</h1>
11
- <p class="header__blog__description">{{ page.title_lead }}</p>
12
- </section>
13
-
14
- {% if paginator.next_page_path %}
15
- <a href="{{ paginator.next_page_path }}"><div class="header__blog__newer"><i class="fas fa-arrow-right"></i></div></a>
16
- {% else %}
17
- <div class="header__blog__newer header__blog__newer--disabled"><i class="fas fa-arrow-right"></i></div>
18
- {% endif %}
19
-
20
- </header>
21
-
22
- {% include hr.html %}
@@ -1,4 +0,0 @@
1
- <div class="alert alert-danger" role="alert">
2
- <p class="title"><i class="fas fa-minus-circle"></i> Caution:</p>
3
- <p>{{ include.content }}</p>
4
- </div>
@@ -1,4 +0,0 @@
1
- <div class="alert alert-info" role="alert">
2
- <p class="title"><i class="fas fa-clipboard"></i> Note:</p>
3
- <p>{{ include.content }}</p>
4
- </div>
@@ -1,4 +0,0 @@
1
- <div class="alert alert-success" role="alert">
2
- <p class="title"><i class="fas fa-lightbulb"></i> Idea:</p>
3
- <p>{{ include.content }}</p>
4
- </div>
@@ -1,4 +0,0 @@
1
- <div class="alert alert-warning" role="alert">
2
- <p class="title"><i class="fas fa-exclamation-triangle"></i> Warning:</p>
3
- <p>{{ include.content }}</p>
4
- </div>
@@ -1,3 +0,0 @@
1
- <figure class="figure">
2
- <img src="{{ include.src }}" alt="{{ include.alt | escape }}">
3
- </figure>
@@ -1,17 +0,0 @@
1
- <div class="bg-image bg-dark text-light">
2
- <div class="container py-5">
3
- {% if page.with_announcements.size > 0 %}
4
- <div class="row">
5
- <div class="col">
6
- {% include announcement.html %}
7
- </div>
8
- </div>
9
- {% endif %}
10
- <div class="row my-3">
11
- <div class="col">
12
- <div class="display-4 fw-bold">{{ page.title }}</div>
13
- <div class="lead">{{ page.title_lead }}</div>
14
- </div>
15
- </div>
16
- </div>
17
- </div>
@@ -1,3 +0,0 @@
1
- <div class="video">
2
- <iframe class="embed-responsive-item" src="{{ include.src }}" allowfullscreen></iframe>
3
- </div>
@@ -1,8 +0,0 @@
1
- <head>
2
- <meta charset="utf-8">
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
4
- <title>{{ page.title }}</title>
5
- <link rel="icon" type="image/png" sizes="16x16" href="{{ site.baseurl }}/assets/img/favicon.png">
6
- <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/stylesheet.css">
7
- <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/dataTables.bootstrap5.min.css">
8
- </head>
@@ -1,23 +0,0 @@
1
- <header class="header header__post">
2
-
3
- {% if page.previous.url %}
4
- <a href="{{ page.previous.url }}"><div class="header__post__older"><i class="fas fa-arrow-left"></i></div></a>
5
- {% else %}
6
- <div class="header__post__older header__post__older--disabled"><i class="fas fa-arrow-left"></i></div>
7
- {% endif %}
8
-
9
- <section class="header__post__present">
10
- <h1 class="header__post__title">{{ page.title }}</h1>
11
- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
12
- <p class="header__post__description">{{ page.date | date: date_format }}</p>
13
- </section>
14
-
15
- {% if page.next.url %}
16
- <a href="{{ page.next.url }}"><div class="header__post__newer"><i class="fas fa-arrow-right"></i></div></a>
17
- {% else %}
18
- <div class="header__post__newer header__post__newer--disabled"><i class="fas fa-arrow-right"></i></div>
19
- {% endif %}
20
-
21
- </header>
22
-
23
- {% include hr.html %}
@@ -1,81 +0,0 @@
1
- <div id="search-searchbar"></div>
2
- <div id="search-hits"></div>
3
- <div id="search-pagination"></div>
4
-
5
- <script src="{{ site.baseurl }}/assets/js/instantsearch.min.js"></script>
6
- <script src="{{ site.baseurl }}/assets/js/moment.min.js"></script>
7
- <script>
8
- const search = instantsearch({
9
- appId: '{{ site.algolia.application_id }}',
10
- apiKey: '{{ site.algolia.search_only_api_key }}',
11
- indexName: '{{ site.algolia.index_name }}'
12
- });
13
-
14
- const hitTemplate = function(hit) {
15
- let date = '';
16
- if (hit.date) {
17
- date = moment.unix(hit.date).format('MMM D, YYYY');
18
- }
19
-
20
- let url = `{{ site.baseurl }}${hit.url}`;
21
- let url_detail = `{{ site.baseurl }}${hit.url}#${hit.anchor}`;
22
-
23
- const title = hit._highlightResult.title.value;
24
-
25
- let breadcrumbs = '';
26
- if (hit._highlightResult.headings) {
27
- breadcrumbs = hit._highlightResult.headings.map(match => {
28
- return `<span class="post-breadcrumb">${match.value}</span>`
29
- }).join(' > ')
30
- }
31
-
32
- let content = "";
33
-
34
- if (hit.html) {
35
- content = hit.html;
36
- }
37
-
38
- if (hit._highlightResult.html) {
39
- content = hit._highlightResult.html.value;
40
- }
41
-
42
- return `
43
- <ul>
44
- <li><a class="post-link" href="${url}">${title}</a> {{#breadcrumbs}}<a href="${url_detail}" class="post-breadcrumbs">${breadcrumbs}</a>{{/breadcrumbs}} ${content}</li>
45
- </ul>
46
- `;
47
- }
48
-
49
- search.addWidget(
50
- instantsearch.widgets.searchBox({
51
- container: '#search-searchbar',
52
- autofocus: true,
53
- placeholder: 'Search...',
54
- poweredBy: true // This is required if you're on the free Community plan
55
- })
56
- );
57
-
58
- search.addWidget(
59
- instantsearch.widgets.hits({
60
- container: '#search-hits',
61
- templates: {
62
- item: hitTemplate
63
- }
64
- })
65
- );
66
-
67
- search.addWidget(
68
- instantsearch.widgets.configure({
69
- hitsPerPage: 5,
70
- enablePersonalization: true,
71
- })
72
- );
73
-
74
- search.addWidget(
75
- instantsearch.widgets.pagination({
76
- container: '#search-pagination',
77
- })
78
- );
79
-
80
- search.start();
81
- </script>