jekyll-theme-centos-test 1.0.22 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/breadcrumbs.html +11 -0
- data/_includes/download/cards-body-convert.html +12 -0
- data/_includes/download/cards-body-doc.html +6 -0
- data/_includes/download/cards-body-eol.html +7 -0
- data/_includes/download/cards-body.html +7 -0
- data/_includes/download/cards-footer.html +3 -0
- data/_includes/download/cards-header-convert.html +9 -0
- data/_includes/download/cards-header-doc.html +9 -0
- data/_includes/download/cards-header-eol.html +9 -0
- data/_includes/download/cards-header.html +11 -0
- data/_includes/download/cards.html +63 -0
- data/_includes/footer.html +64 -0
- data/_includes/head-datatables.html +8 -0
- data/_includes/head.html +7 -0
- data/_includes/header/blog.html +22 -0
- data/_includes/header/home.html +5 -0
- data/_includes/header/page.html +6 -0
- data/_includes/header/post.html +23 -0
- data/_includes/header.html +9 -0
- data/_includes/home/distributions.html +18 -0
- data/_includes/home/news-and-events.html +18 -0
- data/_includes/home/planet.html +18 -0
- data/_includes/home/shortcuts.html +17 -0
- data/_includes/home/sponsors.html +19 -0
- data/_includes/hr.html +6 -0
- data/_includes/navbar.html +26 -0
- data/_includes/page/alert-danger.html +4 -0
- data/_includes/page/alert-info.html +4 -0
- data/_includes/page/alert-success.html +4 -0
- data/_includes/page/alert-warning.html +4 -0
- data/_includes/page/figure.html +3 -0
- data/_includes/page/video.html +3 -0
- data/_includes/post-nav-explorer.html +23 -0
- data/_includes/post-nav.html +3 -0
- data/_includes/search.html +81 -0
- data/_includes/toc.html +104 -0
- data/_includes/top.html +3 -0
- data/_layouts/aside.html +25 -0
- data/_layouts/blog.html +38 -0
- data/_layouts/default.html +18 -0
- data/_layouts/home.html +45 -0
- data/_layouts/page-datatables.html +35 -0
- data/_layouts/page.html +17 -0
- data/_layouts/post.html +29 -0
- data/_layouts/search.html +38 -0
- data/_layouts/sponsors.html +30 -0
- data/_sass/centos/_variables.scss +16 -0
- data/_sass/centos/centos-blog.scss +46 -0
- data/_sass/centos/centos-httpd.scss +27 -0
- data/_sass/centos/centos-lists.scss +162 -0
- data/_sass/centos/centos.scss +1 -0
- data/_sass/centos/fonts/_montserrat.scss +253 -0
- data/_sass/centos/fonts/_overpass.scss +43 -0
- data/assets/css/stylesheet.scss +14 -0
- metadata +56 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 241b4530c74a4a4f8eabe8fd6b037b183a61c2f409bf0c4adbb973c2114b47d2
|
4
|
+
data.tar.gz: f0e82a4875b041e51eb7ac2bb73e7ada9135332b4f3ef327d10161e4b20eb386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 815c8ba74c7e00e94f98f1be4e76d17cc3498597c48ecf44c2cac33b5e132e043d9b253d82d1278852ef68c15df6f010277b829d836ddd9126b1d64d6e4cb2d5
|
7
|
+
data.tar.gz: c8b4d3265ed9a5aa92e09065cd62ea352d34a398292d4f9d431d32d8dd85f0198ff93dae6364ff1fc823c7d2297b6b6a3554a3311022dd8dfa933bb7a950a941
|
@@ -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,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,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 © {{ 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>
|
data/_includes/head.html
ADDED
@@ -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,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,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 }} — {{ 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 }} — {{ 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,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,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,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>
|