jekyll-theme-centos 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/download/body-doc.html +3 -3
- data/_includes/download/body-eol.html +2 -2
- data/_includes/download/body.html +4 -4
- data/_includes/download/linux/7-doc.html +1 -1
- data/_includes/download/linux/7-eol.html +1 -1
- data/_includes/download/linux/7.html +1 -1
- data/_includes/download/linux/8-doc.html +1 -1
- data/_includes/download/linux/8-eol.html +1 -1
- data/_includes/download/linux/8.html +1 -1
- data/_includes/download/stream/8-doc.html +1 -1
- data/_includes/download/stream/8-eol.html +1 -1
- data/_includes/download/stream/8.html +1 -1
- data/_includes/footer.html +5 -5
- data/_includes/header/home.html +0 -10
- data/_includes/home/distributions.html +12 -0
- data/_includes/home/news-and-events.html +13 -0
- data/_includes/home/{around.html → planet.html} +1 -1
- data/_includes/home/sponsors.html +2 -2
- data/_includes/navbar.html +6 -6
- data/_includes/post-nav-explorer.html +1 -1
- data/_includes/search.html +2 -60
- data/_layouts/home.html +14 -2
- data/_layouts/search.html +28 -14
- data/_sass/centos/_footer.scss +1 -1
- data/_sass/centos/_header.scss +9 -22
- data/_sass/centos/_main.scss +24 -33
- data/_sass/centos/_toc.scss +2 -1
- data/_sass/centos/_variables.scss +23 -21
- data/_sass/centos/mixins/_content.scss +8 -23
- data/_sass/centos/mixins/_link-list.scss +1 -1
- data/assets/js/instantsearch.min.js +27 -0
- metadata +7 -6
- data/_includes/home/news-and-sponsors.html +0 -8
- data/_includes/home/news.html +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6382a16afee05d836e1c99591f9fe053419617858e4088686a1327a8a13fd9
|
4
|
+
data.tar.gz: ae1c7d028817b9e1839ef0829bc497fba9671433dc54af7e5526dd2bec547bca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8d0f04e9a23150d1028335da7687875a50bda6d2adc6172f5c851c33f76fdea3a31b83c785226d0818223623e3a7fcb7418be7bb5f2833cb3194dc15ca35541
|
7
|
+
data.tar.gz: 836197ccafc2609d678f06ee6ddbb2a2f5f4e126070179899ecb922151d4b1f8ddd3c50d8845e481ad8d778d224aee18aff3f5b2fe5f248fa1ed9a6933cc1a76
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<tr>
|
2
|
-
<td>{% if row["release_notes"] != "
|
3
|
-
| {% if row["release_email"] != "
|
4
|
-
| {% if row["documentation"] != "
|
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["documentation"] != "" %}<a href="{{ row['documentation'] }}">Documentation</a>{% else %}Documentation{% endif %}</td>
|
5
5
|
</tr>
|
6
6
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<tr>
|
2
|
-
<td>{% if row["date"] != "
|
3
|
-
{% if row["url"] != "
|
2
|
+
<td>{% if row["date"] != "" %}{{ row['date'] }}{% endif %}
|
3
|
+
{% if row["url"] != "" %}<a href="{{ row['url'] }}"><i class="fas fa-exclamation-circle"></i></a>{% endif %}</td>
|
4
4
|
</tr>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<tr>
|
2
2
|
<td><a href="{{ row['iso'] }}"> {{ row['arch'] }}</a></td>
|
3
|
-
<td>{% if row["rpm"] != "
|
4
|
-
<td>{% if row["cloud"] != "
|
5
|
-
| {% if row["containers"] != "
|
6
|
-
| {% if row["vagrant"] != "
|
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
7
|
</tr>
|
data/_includes/footer.html
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
<div class="container">
|
3
3
|
<div class="row">
|
4
4
|
|
5
|
-
{% if site.footer.columns %}
|
6
|
-
{% for column in site.footer.columns %}
|
7
|
-
{% assign links = site.navbar | where: "name", column %}
|
5
|
+
{% if site.data.centos.footer.columns %}
|
6
|
+
{% for column in site.data.centos.footer.columns %}
|
7
|
+
{% assign links = site.data.centos.navbar | where: "name", column %}
|
8
8
|
{% for section in links %}
|
9
9
|
<section class="links">
|
10
10
|
<h6><i class="{{ section.icon }}"></i> {{ section.name }}</h6>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<h4>{{ site.title }}</h4>
|
23
23
|
<p class="lead">{{ site.description }}</p>
|
24
24
|
<div class="lead social">
|
25
|
-
{% for item in site.footer.social %}
|
25
|
+
{% for item in site.data.centos.footer.social %}
|
26
26
|
<a href="{{ item.link }}"><i class="{{ item.icon }}"></i></a>
|
27
27
|
{% endfor %}
|
28
28
|
</div>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
<div class="row">
|
34
34
|
<section class="copyright">
|
35
|
-
<p>Copyright © {{ site.time | date: "%Y" }} {{ site.footer.copyright.author }} {% for item in site.footer.copyright.legals %} | <a href="{{ item.link }}">{{ item.text }}</a>{% endfor %}</p>
|
35
|
+
<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>
|
36
36
|
</section>
|
37
37
|
</div>
|
38
38
|
|
data/_includes/header/home.html
CHANGED
@@ -1,14 +1,4 @@
|
|
1
1
|
<header class="header header__home">
|
2
2
|
<h1 class="header__home__title">{{ site.title }}</h1>
|
3
3
|
<p class="header__home__description">{{ site.description }}</p>
|
4
|
-
{% if site.header.preamble %}
|
5
|
-
<p class="header__home__preamble">{{ site.header.preamble }}</p>
|
6
|
-
{% endif %}
|
7
|
-
{% if site.header.worklines %}
|
8
|
-
<div class="header__home__worklines">
|
9
|
-
{% for item in site.header.worklines %}
|
10
|
-
<a class="btn" role="button" href="{{ item.link }}">{{ item.name }}</a>
|
11
|
-
{% endfor %}
|
12
|
-
</div>
|
13
|
-
{% endif %}
|
14
4
|
</header>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<section class="home__content__distributions">
|
2
|
+
<h2>Distributions</h2>
|
3
|
+
<p class="home__content__distributions_preamble">{{ site.data.centos.distributions.preamble }}</p>
|
4
|
+
|
5
|
+
{% if site.data.centos.distributions.buttons %}
|
6
|
+
<div class="home__content__distributions__buttons">
|
7
|
+
{% for item in site.data.centos.distributions.buttons %}
|
8
|
+
<a class="btn" role="button" href="{{ item.link }}">{{ item.name }}</a>
|
9
|
+
{% endfor %}
|
10
|
+
</div>
|
11
|
+
{% endif %}
|
12
|
+
</section>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<section class="home__content__news-and-events">
|
2
|
+
|
3
|
+
<h2>News and events</h2>
|
4
|
+
|
5
|
+
<ul>
|
6
|
+
{% assign blog_posts = site.posts | where: "category", "news-and-events" %}
|
7
|
+
{% for i in blog_posts limit:4 %}
|
8
|
+
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
|
9
|
+
<li><a href="{{ i.url }}">{{ i.title }}</a> — <small>{{ i.date | date: date_format }}</small> {{ i.excerpt }}</li>
|
10
|
+
{% endfor %}
|
11
|
+
</ul>
|
12
|
+
|
13
|
+
</section>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<section class="
|
1
|
+
<section class="home__content__sponsors">
|
2
2
|
|
3
|
-
<h2>
|
3
|
+
<h2>Sponsors</h2>
|
4
4
|
|
5
5
|
<div class="carousel">
|
6
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>
|
data/_includes/navbar.html
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
<nav class="navbar fixed-top navbar-expand-lg navbar-dark">
|
2
2
|
<div class="container">
|
3
|
-
<a class="navbar-brand" href="{{ site.identity.logo.link }}"><img src="{{ site.identity.logo.image }}" height="32" alt="{{ site.title }}"></a>
|
3
|
+
<a class="navbar-brand" href="{{ site.data.centos.identity.logo.link }}"><img src="{{ site.data.centos.identity.logo.image }}" height="32" alt="{{ site.title }}"></a>
|
4
4
|
<button data-toggle="collapse" class="navbar-toggler" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
|
5
5
|
<div class="collapse navbar-collapse" id="navcol-1">
|
6
6
|
<ul class="nav navbar-nav ml-auto">
|
7
|
-
{
|
7
|
+
{%- for nav-item in site.data.centos.navbar -%}
|
8
8
|
{% if nav-item.menu.size == 0 %}
|
9
9
|
<li class="nav-item" role="presentation"><a class="nav-link" href="{{ nav-item.link }}"><i class="{{ nav-item.icon }}"></i> {{ nav-item.name }}</a></li>
|
10
|
-
{% else
|
10
|
+
{% else -%}
|
11
11
|
<li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#"><i class="{{ nav-item.icon }}"></i> {{ nav-item.name }}</a>
|
12
12
|
<div class="dropdown-menu" role="menu">
|
13
|
-
{
|
13
|
+
{%- for dropdown-item in nav-item.menu -%}
|
14
14
|
<a class="dropdown-item" role="presentation" href="{{ dropdown-item.link }}">{{ dropdown-item.name }}</a>
|
15
|
-
{% endfor
|
15
|
+
{% endfor -%}
|
16
16
|
</div>
|
17
17
|
</li>
|
18
18
|
{% endif %}
|
19
|
-
{
|
19
|
+
{%- endfor -%}
|
20
20
|
</ul>
|
21
21
|
</div>
|
22
22
|
</div>
|
@@ -11,7 +11,7 @@
|
|
11
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
12
|
</div>
|
13
13
|
<div class="post__nav__explorer__index">
|
14
|
-
<a href="{{
|
14
|
+
<a href="/{{ site.pagination.indexpage }}/"><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
15
|
</div>
|
16
16
|
{% if page.next.url %}
|
17
17
|
<div class="post__nav__explorer__older">
|
data/_includes/search.html
CHANGED
@@ -1,62 +1,4 @@
|
|
1
|
-
<
|
1
|
+
<div id="search-searchbar"></div>
|
2
2
|
|
3
|
-
<
|
4
|
-
{% assign counter = 0 %}
|
5
|
-
var documents = [{% for page in site.pages %}{% if page.url contains '.xml' or page.url contains 'assets' %}{% else %}{
|
6
|
-
"id": {{ counter }},
|
7
|
-
"url": "{{ site.url }}{{ page.url }}",
|
8
|
-
"title": "{{ page.title }}",
|
9
|
-
"body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
|
10
|
-
}, {% endif %}{% endfor %}{% for page in site.without-plugin %}{
|
11
|
-
"id": {{ counter }},
|
12
|
-
"url": "{{ site.url }}{{ page.url }}",
|
13
|
-
"title": "{{ page.title }}",
|
14
|
-
"body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
|
15
|
-
}, {% endfor %}{% for page in site.posts %}{
|
16
|
-
"id": {{ counter }},
|
17
|
-
"url": "{{ site.url }}{{ page.url }}",
|
18
|
-
"title": "{{ page.title }}",
|
19
|
-
"body": "{{ page.date | date: "%Y/%m/%d" }} - {{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
|
20
|
-
}{% if forloop.last %}{% else %}, {% endif %}{% endfor %}];
|
3
|
+
<div id="search-hits"></div>
|
21
4
|
|
22
|
-
var idx = lunr(function () {
|
23
|
-
this.ref('id')
|
24
|
-
this.field('title')
|
25
|
-
this.field('body')
|
26
|
-
|
27
|
-
documents.forEach(function (doc) {
|
28
|
-
this.add(doc)
|
29
|
-
}, this)
|
30
|
-
});
|
31
|
-
function lunr_search(term) {
|
32
|
-
document.getElementById('lunrsearchresults').innerHTML = '<ul></ul>';
|
33
|
-
if(term) {
|
34
|
-
document.getElementById('lunrsearchresults').innerHTML = "<h2>Search results for '" + term + "'</h2>" + document.getElementById('lunrsearchresults').innerHTML;
|
35
|
-
//put results on the screen.
|
36
|
-
var results = idx.search(term);
|
37
|
-
if(results.length>0){
|
38
|
-
//console.log(idx.search(term));
|
39
|
-
//if results
|
40
|
-
for (var i = 0; i < results.length; i++) {
|
41
|
-
// more statements
|
42
|
-
var ref = results[i]['ref'];
|
43
|
-
var url = documents[ref]['url'];
|
44
|
-
var title = documents[ref]['title'];
|
45
|
-
var body = documents[ref]['body'].substring(0,160)+'...';
|
46
|
-
document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML + "<li class='lunrsearchresult'><a href='" + url + "'><span class='title'>" + title + "</span></a><br/><span class='body'>"+ body +"</span><br/><span class='url'>"+ url +"</span></li>";
|
47
|
-
}
|
48
|
-
} else {
|
49
|
-
document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = "<li class='lunrsearchresult'>No results found...</li>";
|
50
|
-
}
|
51
|
-
}
|
52
|
-
return false;
|
53
|
-
}
|
54
|
-
</script>
|
55
|
-
|
56
|
-
<form onSubmit="return lunr_search(document.getElementById('lunrsearch').value);">
|
57
|
-
<p><input type="text" class="form-control" id="lunrsearch" name="q" maxlength="255" value="" placeholder="Search via Lunr.js" autofocus /></p>
|
58
|
-
</form>
|
59
|
-
|
60
|
-
<div id="lunrsearchresults">
|
61
|
-
<ul></ul>
|
62
|
-
</div>
|
data/_layouts/home.html
CHANGED
@@ -10,8 +10,20 @@
|
|
10
10
|
|
11
11
|
<main class="home">
|
12
12
|
<div class="home__content">
|
13
|
-
|
14
|
-
|
13
|
+
<div class="row">
|
14
|
+
<div class="col-sm-12 col-lg-8">
|
15
|
+
{% include home/news-and-events.html %}
|
16
|
+
</div>
|
17
|
+
<div class="col-sm-12 col-lg-4">
|
18
|
+
{% include home/distributions.html -%}
|
19
|
+
{% include home/sponsors.html %}
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-sm-12">
|
24
|
+
{% include home/planet.html -%}
|
25
|
+
</div>
|
26
|
+
</div>
|
15
27
|
</div>
|
16
28
|
</main>
|
17
29
|
|
data/_layouts/search.html
CHANGED
@@ -1,18 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
---
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: 'en' }}">
|
4
3
|
|
5
|
-
|
4
|
+
{% include head.html -%}
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{% include navbar.html -%}
|
9
|
+
{% include header.html -%}
|
10
|
+
|
11
|
+
<main class="search">
|
12
|
+
|
13
|
+
<div class="search__content">
|
14
|
+
<div class="search__content__nav">
|
15
|
+
{% include breadcrumbs.html %}
|
16
|
+
</div>
|
12
17
|
|
13
|
-
|
14
|
-
|
18
|
+
<div class="search__content_results">
|
19
|
+
{{ content }}
|
20
|
+
</div>
|
15
21
|
</div>
|
16
|
-
|
17
|
-
|
18
|
-
|
22
|
+
|
23
|
+
</main>
|
24
|
+
|
25
|
+
{% include footer.html -%}
|
26
|
+
|
27
|
+
<script src="/assets/js/jquery.min.js"></script>
|
28
|
+
<script src="/assets/js/bootstrap.min.js"></script>
|
29
|
+
<script src="/assets/js/instantsearch.min.js"></script>
|
30
|
+
</body>
|
31
|
+
|
32
|
+
</html>
|
data/_sass/centos/_footer.scss
CHANGED
data/_sass/centos/_header.scss
CHANGED
@@ -13,9 +13,9 @@
|
|
13
13
|
justify-content: center;
|
14
14
|
flex-direction: column;
|
15
15
|
|
16
|
-
padding-top:
|
17
|
-
padding-bottom:
|
18
|
-
margin-top:
|
16
|
+
padding-top: calc(#{$navbar-brand-height} * 4);
|
17
|
+
padding-bottom: calc(#{$navbar-brand-height} * 6);
|
18
|
+
margin-top: $navbar-brand-height;
|
19
19
|
|
20
20
|
&__title, &__description, &__preamble {
|
21
21
|
@extend .container;
|
@@ -24,22 +24,12 @@
|
|
24
24
|
&__description {
|
25
25
|
@extend .lead;
|
26
26
|
}
|
27
|
-
|
28
|
-
&__worklines {
|
29
|
-
@extend .container;
|
30
|
-
.btn {
|
31
|
-
@extend .btn, .btn-light;
|
32
|
-
text-shadow: none;
|
33
|
-
margin-bottom: 1rem;
|
34
|
-
margin-right: 1rem;
|
35
|
-
}
|
36
|
-
}
|
37
27
|
}
|
38
28
|
|
39
29
|
&__page {
|
40
|
-
padding-top:
|
41
|
-
padding-bottom:
|
42
|
-
margin-top:
|
30
|
+
padding-top: calc(#{$navbar-brand-height} * 2);
|
31
|
+
padding-bottom: calc(#{$navbar-brand-height} * 4);
|
32
|
+
margin-top: $navbar-brand-height;
|
43
33
|
|
44
34
|
display: flex;
|
45
35
|
justify-content: center;
|
@@ -56,9 +46,9 @@
|
|
56
46
|
}
|
57
47
|
|
58
48
|
&__blog, &__post {
|
59
|
-
padding-top:
|
60
|
-
padding-bottom:
|
61
|
-
margin-top:
|
49
|
+
padding-top: calc(#{$navbar-brand-height} * 2);
|
50
|
+
padding-bottom: calc(#{$navbar-brand-height} * 4);
|
51
|
+
margin-top: $navbar-brand-height;
|
62
52
|
|
63
53
|
display: flex;
|
64
54
|
justify-content: space-between;
|
@@ -80,15 +70,12 @@
|
|
80
70
|
}
|
81
71
|
}
|
82
72
|
}
|
83
|
-
|
84
73
|
&__present {
|
85
74
|
@extend .container;
|
86
75
|
}
|
87
|
-
|
88
76
|
&__title, &__description {
|
89
77
|
text-shadow: 0 0 5px $black;
|
90
78
|
}
|
91
|
-
|
92
79
|
&__description {
|
93
80
|
@extend .lead;
|
94
81
|
}
|