jekyll-theme-centos-test 1.0.22 → 1.0.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/breadcrumbs.html +11 -0
  3. data/_includes/download/cards-body-convert.html +12 -0
  4. data/_includes/download/cards-body-doc.html +6 -0
  5. data/_includes/download/cards-body-eol.html +7 -0
  6. data/_includes/download/cards-body.html +7 -0
  7. data/_includes/download/cards-footer.html +3 -0
  8. data/_includes/download/cards-header-convert.html +9 -0
  9. data/_includes/download/cards-header-doc.html +9 -0
  10. data/_includes/download/cards-header-eol.html +9 -0
  11. data/_includes/download/cards-header.html +11 -0
  12. data/_includes/download/cards.html +63 -0
  13. data/_includes/footer.html +64 -0
  14. data/_includes/head-datatables.html +8 -0
  15. data/_includes/head.html +7 -0
  16. data/_includes/header/blog.html +22 -0
  17. data/_includes/header/home.html +5 -0
  18. data/_includes/header/page.html +6 -0
  19. data/_includes/header/post.html +23 -0
  20. data/_includes/header.html +9 -0
  21. data/_includes/home/distributions.html +18 -0
  22. data/_includes/home/news-and-events.html +18 -0
  23. data/_includes/home/planet.html +18 -0
  24. data/_includes/home/shortcuts.html +17 -0
  25. data/_includes/home/sponsors.html +19 -0
  26. data/_includes/hr.html +6 -0
  27. data/_includes/navbar.html +26 -0
  28. data/_includes/page/alert-danger.html +4 -0
  29. data/_includes/page/alert-info.html +4 -0
  30. data/_includes/page/alert-success.html +4 -0
  31. data/_includes/page/alert-warning.html +4 -0
  32. data/_includes/page/figure.html +3 -0
  33. data/_includes/page/video.html +3 -0
  34. data/_includes/post-nav-explorer.html +23 -0
  35. data/_includes/post-nav.html +3 -0
  36. data/_includes/search.html +81 -0
  37. data/_includes/toc.html +104 -0
  38. data/_includes/top.html +3 -0
  39. data/_layouts/aside.html +25 -0
  40. data/_layouts/blog.html +38 -0
  41. data/_layouts/default.html +18 -0
  42. data/_layouts/home.html +45 -0
  43. data/_layouts/page-datatables.html +35 -0
  44. data/_layouts/page.html +17 -0
  45. data/_layouts/post.html +29 -0
  46. data/_layouts/search.html +38 -0
  47. data/_layouts/sponsors.html +30 -0
  48. data/_sass/centos/_variables.scss +16 -0
  49. data/_sass/centos/centos-blog.scss +46 -0
  50. data/_sass/centos/centos-httpd.scss +27 -0
  51. data/_sass/centos/centos-lists.scss +162 -0
  52. data/_sass/centos/centos.scss +1 -0
  53. data/_sass/centos/fonts/_montserrat.scss +253 -0
  54. data/_sass/centos/fonts/_overpass.scss +43 -0
  55. data/assets/css/stylesheet.scss +14 -0
  56. metadata +58 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8caf50c9437faf5d39db9920cb17dca401fdf771012a71efa75c53bc2dbe28e7
4
- data.tar.gz: 84b3df1ae0e17f30baf231a7c538435bd22ba72badb1b7815488d21e0f1efb68
3
+ metadata.gz: c30c47432e0f22356876c8860b3e1ea21dccb24d18e77cac63591d8d4020fb63
4
+ data.tar.gz: eecbd4214fab9eef8450b02b969fc15ecce4674a5c6e8870cf1f19ca2257817d
5
5
  SHA512:
6
- metadata.gz: b4e734bdc1b1db13b8cf6baaccc3194bfd09cddb513212a8735f5b16ec5459fd488f04ebc4d8704276f34281dc58c32609f0bfacce52bf4a94fa92033ddad5ac
7
- data.tar.gz: 8969cf0046063620c843fd0cffb33e180ea51624d6b64204bad851bdd89e46cfe91e145bdf60e5e8d377276359c106fdd4260946992fe13096614da8214f92d6
6
+ metadata.gz: a1b3cf8e7ccc3049cce3c7e1f0f71ef7d3f179f2c95e61185b61e092111a4087c76a17d6fb4eaed5a89054c6273721a83276d692f55e25eaccdc38e18c58b29e
7
+ data.tar.gz: a556f4fbdd29c856738b4c4298d13d7d98a3c70761ab119432d9dabbb2ce695e4d6d29208da700313c2b1aa7d492e5bbe64b975fa36938323c39d7013ed3f4f5
@@ -0,0 +1,11 @@
1
+ <ol class="breadcrumb">
2
+ {% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
3
+ <li class="breadcrumb-item"><a href="/">Home</a></li>
4
+ {% for crumb in crumbs offset: 1 %}
5
+ {% if forloop.last %}
6
+ <li class="breadcrumb-item active">{{ page.title }}</li>
7
+ {% else %}
8
+ <li class="breadcrumb-item"><a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
9
+ {% endif %}
10
+ {% endfor %}
11
+ </ol>
@@ -0,0 +1,12 @@
1
+ {% capture code %}```sh
2
+ {{ row["commands"] | lstrip }}
3
+ ```{% endcapture %}
4
+
5
+ <tr>
6
+ <td>
7
+ {% if row["commands"] != "" %}
8
+ {{ code | markdownify }}
9
+ {% endif %}
10
+ </td>
11
+ </tr>
12
+
@@ -0,0 +1,6 @@
1
+ <tr>
2
+ <td>{% if row["release_notes"] != "" %}<a href="{{ row['release_notes'] }}">Release Notes</a>{% else %}Release Notes{% endif %}
3
+ | {% if row["release_email"] != "" %}<a href="{{ row['release_email'] }}">Release Email</a>{% else %}Release Email{% endif %}
4
+ | {% if row["website"] != "" %}<a href="{{ row['website'] }}">Website</a>{% else %}Website{% endif %}</td>
5
+ </tr>
6
+
@@ -0,0 +1,7 @@
1
+ <tr>
2
+ <td>
3
+ {% if row["overview"] != "" %}{{ row['overview'] }} {% endif %}
4
+ {% if row["date"] != "" %}{{ row['date'] | date_to_string: "ordinal", "US" }} {% endif %}
5
+ {% if row["url"] != "" %}<a href="{{ row['url'] }}"><i class="fas fa-exclamation-circle"></i></a>{% endif %}
6
+ </td>
7
+ </tr>
@@ -0,0 +1,7 @@
1
+ <tr>
2
+ <td><a href="{{ row['iso'] }}"> {{ row['arch'] }}</a></td>
3
+ <td>{% if row["rpm"] != "" %}<a href="{{ row['rpm'] }}"> RPMs</a>{% else %}RPMs{% endif %}</td>
4
+ <td>{% if row["cloud"] != "" %}<a href="{{ row['cloud'] }}">Cloud</a>{% else %}Cloud{% endif %}
5
+ | {% if row["containers"] != "" %}<a href="{{ row['containers'] }}">Containers</a>{% else %}Containers{% endif %}
6
+ | {% if row["vagrant"] != "" %}<a href="{{ row['vagrant'] }}">Vagrant</a>{% else %}Vagrant{% endif %}</td>
7
+ </tr>
@@ -0,0 +1,3 @@
1
+ </tbody>
2
+ </table>
3
+ </div>
@@ -0,0 +1,9 @@
1
+ <div class="table-responsive">
2
+ <table class="table">
3
+ <thead>
4
+ <tr>
5
+ <th scope="col"><i class="fas fa-sync-alt"></i> {{ row["overview"] }}</th>
6
+ </tr>
7
+ </thead>
8
+ <tbody>
9
+
@@ -0,0 +1,9 @@
1
+ <div class="table-responsive">
2
+ <table class="table">
3
+ <thead>
4
+ <tr>
5
+ <th scope="col"><i class="fas fa-book"></i> Documentation</th>
6
+ </tr>
7
+ </thead>
8
+ <tbody>
9
+
@@ -0,0 +1,9 @@
1
+ <div class="table-responsive">
2
+ <table class="table">
3
+ <thead>
4
+ <tr>
5
+ <th scope="col"><i class="fas fa-hourglass-end"></i> End-of-life</th>
6
+ </tr>
7
+ </thead>
8
+ <tbody>
9
+
@@ -0,0 +1,11 @@
1
+ <div class="table-responsive">
2
+ <table class="table">
3
+ <thead>
4
+ <tr>
5
+ <th scope="col"><i class="fas fa-microchip"></i> Architectures</th>
6
+ <th scope="col">Packages</th>
7
+ <th scope="col">Others</th>
8
+ </tr>
9
+ </thead>
10
+ <tbody>
11
+
@@ -0,0 +1,63 @@
1
+ {% if include.distribution %}
2
+ {% assign cards = site.data.centos.distributions | where: "page", include.distribution %}
3
+ {% else %}
4
+ {% assign cards = site.data.centos.distributions %}
5
+ {% endif %}
6
+
7
+ <div class="download__content__card">
8
+ <div class="download__content__card__header">
9
+ <ul class="nav nav-pills card-header-pills flex-column flex-sm-row">
10
+ {% for item in cards %}
11
+ <li class="nav-item flex-sm-fill text-sm-center"><a class="nav-link{% if forloop.first %} active{% endif %}" role="tab" data-toggle="tab" href="#{{ item.page }}">{{ item.name }}</a></li>
12
+ {% endfor %}
13
+ </ul>
14
+ </div>
15
+ <div class="download__content__card__body tab-content">
16
+ {% for item in cards %}
17
+ <div class="tab-pane{% if forloop.first %} active{% endif %}" role="tabpanel" id="{{ item.page }}">
18
+
19
+ <div class="download__content__card">
20
+ <div class="download__content__card__header">
21
+ <ul class="nav nav-pills card-header-pills flex-column flex-sm-row">
22
+ {% for release in item.releases %}
23
+ <li class="nav-item flex-sm-fill text-sm-center"><a class="nav-link{% if forloop.first %} active{% endif %}" role="tab" data-toggle="tab" href="#{{ item.page }}-{{ release[0] }}">{{ release[0] }}</a></li>
24
+ {% endfor %}
25
+ </ul>
26
+ </div>
27
+
28
+ <div class="download__content__card__body tab-content">
29
+ {% for release in item.releases %}
30
+ <div class="tab-pane{% if forloop.first %} active{% endif %}" role="tabpanel" id="{{ item.page }}-{{ release[0] }}">
31
+ {% include download/cards-header.html %}
32
+ {% for row in release[1].downloads %}
33
+ {% include download/cards-body.html %}
34
+ {% endfor %}
35
+ {% include download/cards-footer.html %}
36
+
37
+ {% include download/cards-header-doc.html %}
38
+ {% for row in release[1].docs %}
39
+ {% include download/cards-body-doc.html %}
40
+ {% endfor %}
41
+ {% include download/cards-footer.html %}
42
+
43
+ {% include download/cards-header-eol.html %}
44
+ {% for row in release[1].eol %}
45
+ {% include download/cards-body-eol.html %}
46
+ {% endfor %}
47
+ {% include download/cards-footer.html %}
48
+
49
+ {% for row in release[1].convert %}
50
+ {% include download/cards-header-convert.html %}
51
+ {% include download/cards-body-convert.html %}
52
+ {% include download/cards-footer.html %}
53
+ {% endfor %}
54
+
55
+ </div>
56
+ {% endfor %}
57
+ </div>
58
+ </div>
59
+
60
+ </div>
61
+ {% endfor %}
62
+ </div>
63
+ </div>
@@ -0,0 +1,64 @@
1
+ {% include hr.html %}
2
+
3
+ <footer class="bd-footer py-4 py-md-5 mt-5 bg-light">
4
+ <div class="container">
5
+ <div class="row">
6
+ <section class="sponsor">
7
+ <div class="sponsor__message">
8
+ <h6><i class="fas fa-hand-holding-heart"></i> Sponsors</h6>
9
+ <p>CentOS would not be possible without the support of our sponsors. We would like to thank the following product/service for being a CentOS sponsor. If you value our work, please consider <a href="/sponsors">becoming a sponsor</a>!</p>
10
+ </div>
11
+
12
+ <div class="sponsor__logo">
13
+ <div class="carousel">
14
+ <div class="card">
15
+ <div class="carousel slide carousel-fade" data-ride="carousel" id="carousel-1">
16
+ <div class="carousel-inner" role="listbox">
17
+ {% for sponsor in site.sponsors %}
18
+ <div class="carousel-item {{ sponsor.status }}"><a href="{{ sponsor.address }}" rel="nofollow"><img class="img-fluid" src="{{ sponsor.logo }}"></a></div>
19
+ {% endfor %}
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ </section>
26
+ </div>
27
+ <div class="row">
28
+
29
+ {% if site.data.centos.footer.columns %}
30
+ {% for column in site.data.centos.footer.columns %}
31
+ {% assign links = site.data.centos.navbar | where: "name", column %}
32
+ {% for section in links %}
33
+ <section class="links">
34
+ <h6><i class="{{ section.icon }}"></i> {{ section.name }}</h6>
35
+ <ul>
36
+ {% for item in section.menu %}
37
+ <li><a href="{{ item.link }}">{{ item.name }}</a></li>
38
+ {% endfor %}
39
+ </ul>
40
+ </section>
41
+ {% endfor %}
42
+ {% endfor %}
43
+ {% endif %}
44
+
45
+ <section class="project">
46
+ <h4>{{ site.title }}</h4>
47
+ <p class="lead">{{ site.description }}</p>
48
+ <div class="lead social">
49
+ {% for item in site.data.centos.footer.social %}
50
+ <a href="{{ item.link }}" class="btn btn-link" role="button" aria-label="{{ item.name }}"><i class="{{ item.icon }}"></i></a>
51
+ {% endfor %}
52
+ </div>
53
+ </section>
54
+
55
+ </div>
56
+
57
+ <div class="row">
58
+ <section class="copyright">
59
+ <p>Copyright &copy; {{ site.time | date: "%Y" }} {{ site.data.centos.footer.copyright.author }} {% for item in site.data.centos.footer.copyright.legals %} | <a href="{{ item.link }}">{{ item.text }}</a>{% endfor %}</p>
60
+ </section>
61
+ </div>
62
+ </div>
63
+
64
+ </footer>
@@ -0,0 +1,8 @@
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="/assets/img/favicon.png">
6
+ <link rel="stylesheet" href="/assets/css/stylesheet.css">
7
+ <link rel="stylesheet" href="/assets/css/dataTables.bootstrap5.min.css">
8
+ </head>
@@ -0,0 +1,7 @@
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.url }}{{ site.baseurl }}/assets/img/favicon.png">
6
+ <link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}/assets/css/stylesheet.css">
7
+ </head>
@@ -0,0 +1,22 @@
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 %}
@@ -0,0 +1,5 @@
1
+ <div class="pt-5 pb-5 container">
2
+ <div class="text-center"><img src="{{ site.url }}{{ site.baseurl }}/assets/img/centos-symbol.png" alt="CentOS"></div>
3
+ <p class="display-2 fw-bold text-center pt-5">{{ site.title }}</p>
4
+ <p class="display-6 fw-lighter text-center">{{ site.description }}</p>
5
+ </div>
@@ -0,0 +1,6 @@
1
+ <header class="header header__page">
2
+ <h1 class="header__page__title">{{ page.title }}</h1>
3
+ <p class="header__page__description">{{ page.title_lead }}</p>
4
+ </header>
5
+
6
+ {% include hr.html %}
@@ -0,0 +1,23 @@
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 %}
@@ -0,0 +1,9 @@
1
+ {% if page.layout == "home" %}
2
+ {% include header/home.html %}
3
+ {% elsif page.layout == "blog" %}
4
+ {% include header/blog.html %}
5
+ {% elsif page.layout == "post" %}
6
+ {% include header/post.html %}
7
+ {% else %}
8
+ {% include header/page.html %}
9
+ {% endif %}
@@ -0,0 +1,18 @@
1
+ <div class="card text-center">
2
+ <div class="card-header">
3
+ <ul class="nav nav-pills nav-fill" id="pills-tab" role="tablist">
4
+ {% for item in site.data.centos.distributions %}
5
+ <li class="nav-item" role="presentation">
6
+ <button class="nav-link{% if forloop.first %} active{% endif %}" id="pills-{{ item.page }}-tab" data-bs-toggle="pill" data-bs-target="#pills-{{ item.page }}" type="button" role="tab" aria-controls="pills-home" aria-selected="true">{{ item.name }}</button>
7
+ </li>
8
+ {% endfor %}
9
+ </ul>
10
+ </div>
11
+ <div class="card-body">
12
+ <div class="tab-content" id="pills-tabContent">
13
+ {% for item in site.data.centos.distributions %}
14
+ <div class="tab-pane fade show{% if forloop.first %} active{% endif %}" id="pills-{{ item.page }}" role="tabpanel" aria-labelledby="pills-{{ item.page }}-tab" tabindex="{{ forloop.index }}">{{ item.description }}</div>
15
+ {% endfor %}
16
+ </div>
17
+ </div>
18
+ </div>
@@ -0,0 +1,18 @@
1
+ <section id="news-and-events" class="home__news-and-events">
2
+
3
+ <h2 class="home__news-and-events__title">News and events</h2>
4
+
5
+ <div class="home__news-and-events__content">
6
+ {% assign blog_posts = site.posts | where: "category", "news-and-events" %}
7
+ {% for i in blog_posts limit:5 %}
8
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
9
+ <a class="btn" role="button" href="{{ i.url }}">
10
+ <div class="card">
11
+ <h3 class="card-title">{{ i.title }}</h3>
12
+ <div class="card-body">{{ i.date | date: date_format }} &mdash; {{ i.excerpt | strip_html }}</div>
13
+ </div>
14
+ </a>
15
+ {% endfor %}
16
+ </div>
17
+
18
+ </section>
@@ -0,0 +1,18 @@
1
+ <section id="around-centos" class="home__planet">
2
+
3
+ <h2 class="home__planet__title">Around CentOS</h2>
4
+
5
+ <div class="home__planet__content">
6
+ {% assign entries = site.data.centos.planet %}
7
+ {% for i in entries limit:5 %}
8
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
9
+ <a class="btn" role="button" href="{{ i.link }}">
10
+ <div class="card">
11
+ <h3 class="card-title">{{ i.title }}</h3>
12
+ <div class="card-body">{{ i.published | date: date_format }} &mdash; {{ i.summary | strip_html | slice: 0,150 }}...</div>
13
+ </div>
14
+ </a>
15
+ {% endfor %}
16
+ </div>
17
+
18
+ </section>
@@ -0,0 +1,17 @@
1
+ <div class="header__home__shortcuts__community">
2
+
3
+ {% assign links = site.data.centos.navbar | where: "name", "Community" %}
4
+ {% for section in links %}
5
+ {% for item in section.menu %}
6
+ <a class="btn" role="button" href="{{ item.link }}">
7
+ <div class="card">
8
+ <div class="card-body">
9
+ <h2 class="card-title"><i class="{{ item.icon }}"></i></h2>
10
+ <p class="card-text">{{ item.name }}</p>
11
+ </div>
12
+ </div>
13
+ </a>
14
+ {% endfor %}
15
+ {% endfor %}
16
+
17
+ </div>
@@ -0,0 +1,19 @@
1
+ <section class="home__content__sponsors">
2
+
3
+ <h2>Sponsors</h2>
4
+
5
+ <div class="carousel">
6
+ <p>CentOS would not be possible without the support of our sponsors. We would like to thank the following product/service for being a CentOS sponsor:</p>
7
+ <div class="card">
8
+ <div class="carousel slide carousel-fade" data-ride="carousel" id="carousel-1">
9
+ <div class="carousel-inner" role="listbox">
10
+ {% for sponsor in site.sponsors %}
11
+ <div class="carousel-item {{ sponsor.status }}"><a href="{{ sponsor.address }}" rel="nofollow"><img class="img-fluid" src="{{ sponsor.logo }}"></a></div>
12
+ {% endfor %}
13
+ </div>
14
+ </div>
15
+ </div>
16
+ <p>If you value our work, please consider <a href="/sponsors">becoming a sponsor</a>!</p>
17
+ </div>
18
+
19
+ </section>
data/_includes/hr.html ADDED
@@ -0,0 +1,6 @@
1
+ <div class="hr">
2
+ <div class="hr__centos-color-0"></div>
3
+ <div class="hr__centos-color-1"></div>
4
+ <div class="hr__centos-color-2"></div>
5
+ <div class="hr__centos-color-3"></div>
6
+ </div>
@@ -0,0 +1,26 @@
1
+ <nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top p-3 shadow">
2
+ <div class="container">
3
+ <a class="navbar-brand" href="{{ site.data.centos.identity.logo.link }}"><img src="{{ site.url }}{{ site.baseurl }}/{{ site.data.centos.identity.logo.image }}" height="32" alt="{{ site.title }}"><span class="manifestation">{{ site.data.centos.identity.logo.manifestation }}</span></a>
4
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
5
+ <span class="navbar-toggler-icon"></span>
6
+ </button>
7
+ <div class="collapse navbar-collapse flex-grow-0" id="navbarSupportedContent">
8
+ <ul class="navbar-nav">
9
+ {%- for nav-item in site.data.centos.navbar -%}
10
+ {% if nav-item.menu.size == 0 %}
11
+ <li class="nav-item"><a class="nav-link" role="presentation" href="{{ nav-item.link }}"><i class="{{ nav-item.icon }}"></i> {{ nav-item.name }}</a></li>
12
+ {% else -%}
13
+ <li class="nav-item dropdown">
14
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown-{{ forloop.index }}" role="button" data-bs-toggle="dropdown" aria-expanded="false"><i class="{{ nav-item.icon }}"></i> {{ nav-item.name }}</a>
15
+ <ul class="dropdown-menu" aria-labelledby="navbarDropdown-{{ forloop.index }}">
16
+ {%- for dropdown-item in nav-item.menu -%}
17
+ <li><a class="dropdown-item" role="presentation" href="{{ dropdown-item.link }}">{{ dropdown-item.name }}</a> </li>
18
+ {% endfor -%}
19
+ </ul>
20
+ </li>
21
+ {% endif %}
22
+ {%- endfor -%}
23
+ </ul>
24
+ </div>
25
+ </div>
26
+ </nav>
@@ -0,0 +1,4 @@
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>
@@ -0,0 +1,4 @@
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>
@@ -0,0 +1,4 @@
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>
@@ -0,0 +1,4 @@
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>
@@ -0,0 +1,3 @@
1
+ <figure class="figure">
2
+ <img src="{{ include.src }}" alt="{{ include.alt | escape }}">
3
+ </figure>
@@ -0,0 +1,3 @@
1
+ <div class="video">
2
+ <iframe class="embed-responsive-item" src="{{ include.src }}" allowfullscreen></iframe>
3
+ </div>
@@ -0,0 +1,23 @@
1
+ <nav class="post__nav__explorer">
2
+ {% if page.previous.url %}
3
+ <div class="post__nav__explorer__newer">
4
+ {% else %}
5
+ <div class="post__nav__explorer__newer--disabled">
6
+ {% endif %}
7
+ <a href="{{ page.previous.url | remove:'index.html' }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Previous Post - {{ page.previous.title }}"><i class="fas fa-arrow-left"></i></button></a>
8
+ </div>
9
+
10
+ <div class="post__nav_explorer__feeds">
11
+ <a href="{{ "/feed.xml" | relative_url }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="RSS"><i class="fas fa-rss"></i></button></a>
12
+ </div>
13
+ <div class="post__nav__explorer__index">
14
+ <a href="/news-and-events/"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Blog posts"><i class="fas fa-th"></i></button></a>
15
+ </div>
16
+ {% if page.next.url %}
17
+ <div class="post__nav__explorer__older">
18
+ {% else %}
19
+ <div class="post__nav__explorer__older--disabled">
20
+ {% endif %}
21
+ <a href="{{ page.next.url | remove:'index.html' }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Next Post - {{ page.next.title }}"><i class="fas fa-arrow-right"></i></button></a>
22
+ </div>
23
+ </nav>
@@ -0,0 +1,3 @@
1
+ {% include breadcrumbs.html %}
2
+ {% include toc.html html=content %}
3
+ {% include post-nav-explorer.html %}
@@ -0,0 +1,81 @@
1
+ <div id="search-searchbar"></div>
2
+ <div id="search-hits"></div>
3
+ <div id="search-pagination"></div>
4
+
5
+ <script src="/assets/js/instantsearch.min.js"></script>
6
+ <script src="/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>