jekyll-theme-centos 0.7.6 → 0.8.0
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 +4 -4
- data/_includes/breadcrumbs.html +1 -1
- data/_includes/footer.html +27 -1
- data/_includes/header/blog.html +2 -0
- data/_includes/header/home.html +18 -2
- data/_includes/header/page.html +2 -0
- data/_includes/header/post.html +2 -0
- data/_includes/home/distributions.html +8 -10
- data/_includes/home/news-and-events.html +14 -9
- data/_includes/home/planet.html +11 -6
- data/_includes/home/shortcuts.html +17 -0
- data/_includes/hr.html +6 -0
- data/_includes/navbar.html +1 -1
- data/_includes/post-nav-explorer.html +5 -5
- data/_includes/toc.html +2 -2
- data/_includes/top.html +2 -2
- data/_layouts/aside.html +0 -7
- data/_layouts/default.html +1 -1
- data/_layouts/download-mirror.html +1 -0
- data/_layouts/home.html +3 -12
- data/_layouts/page.html +0 -3
- data/_layouts/search.html +1 -0
- data/_sass/centos/_footer.scss +16 -3
- data/_sass/centos/_header.scss +52 -7
- data/_sass/centos/_hr.scss +27 -0
- data/_sass/centos/_main.scss +37 -35
- data/_sass/centos/_nav.scss +6 -0
- data/_sass/centos/_toc.scss +4 -1
- data/_sass/centos/_variables.scss +4 -4
- data/_sass/centos/centos-blog.scss +2 -2
- data/_sass/centos/centos-httpd.scss +0 -2
- data/_sass/centos/centos.scss +2 -1
- data/_sass/centos/mixins/_aside-nav.scss +7 -11
- data/_sass/centos/mixins/_content-nav.scss +4 -1
- data/_sass/centos/mixins/_content.scss +2 -1
- data/assets/img/motif.png +0 -0
- data/assets/js/{copycode.js → customization.js} +11 -0
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3e90b06842891c3035f561da0a5b2814da0d5850d9aa57e363aa7da8c9dfd53
|
|
4
|
+
data.tar.gz: 0ba40a1b6e95c5c0daa991973f2778da2d124caf82ea844f62cf23c6ba6c841f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a51c9737c5ade892bd879d5253bb626a7f59f60586e578d5cb62faf38ffef409c67b01efdb1934a7c750151a0c1fbfa3ba768b3f1804b7e20cf4f55e9f31cf2
|
|
7
|
+
data.tar.gz: b0259e36f8f47241940d1c9ac06b15aa627e8f4793856ebd87a1c3af09bc82567dfdddd1c74b1b852eb05af6c92902492ff12a0aa68f93310fc2fab540633bc2
|
data/_includes/breadcrumbs.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<li class="breadcrumb-item"><a href="/">Home</a></li>
|
|
4
4
|
{% for crumb in crumbs offset: 1 %}
|
|
5
5
|
{% if forloop.last %}
|
|
6
|
-
<li class="breadcrumb-item">{{ page.title }}</li>
|
|
6
|
+
<li class="breadcrumb-item active">{{ page.title }}</li>
|
|
7
7
|
{% else %}
|
|
8
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
9
|
{% endif %}
|
data/_includes/footer.html
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
|
+
{% include hr.html %}
|
|
2
|
+
|
|
1
3
|
<footer class="footer">
|
|
2
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>
|
|
3
27
|
<div class="row">
|
|
4
28
|
|
|
5
29
|
{% if site.data.centos.footer.columns %}
|
|
@@ -35,6 +59,8 @@
|
|
|
35
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>
|
|
36
60
|
</section>
|
|
37
61
|
</div>
|
|
38
|
-
|
|
39
62
|
</div>
|
|
63
|
+
|
|
64
|
+
{% include top.html %}
|
|
65
|
+
|
|
40
66
|
</footer>
|
data/_includes/header/blog.html
CHANGED
data/_includes/header/home.html
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
<header class="header header__home">
|
|
2
|
-
|
|
3
|
-
<
|
|
2
|
+
|
|
3
|
+
<section class="header__home__presentation">
|
|
4
|
+
<h1 class="header__home__presentaiton_title">{{ site.title }}</h1>
|
|
5
|
+
<p class="header__home__presentation__description">{{ site.description }}</p>
|
|
6
|
+
{% if site.data.centos.distributions %}
|
|
7
|
+
<p class="header__home__presentation__description">We offer two Linux variants: (<a class="btn btn-sm" role="button" href="cs-vs-cl">What's the difference?</a>)</p>
|
|
8
|
+
<div class="header__home__presentation__distributions">
|
|
9
|
+
{% include home/distributions.html %}
|
|
10
|
+
</div>
|
|
11
|
+
{% endif %}
|
|
12
|
+
</section>
|
|
13
|
+
|
|
14
|
+
<section class="header__home__shortcuts">
|
|
15
|
+
{% include home/shortcuts.html %}
|
|
16
|
+
</section>
|
|
17
|
+
|
|
4
18
|
</header>
|
|
19
|
+
|
|
20
|
+
{% include hr.html %}
|
data/_includes/header/page.html
CHANGED
data/_includes/header/post.html
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
<section class="home__content__distributions">
|
|
2
|
-
<h2>Distributions</h2>
|
|
3
|
-
<p class="home__content__distributions_preamble">We offer the following distributions:</p>
|
|
4
|
-
|
|
5
|
-
{% if site.data.centos.distributions %}
|
|
6
|
-
<div class="home__content__distributions__buttons">
|
|
7
1
|
{% for item in site.data.centos.distributions %}
|
|
8
|
-
|
|
9
|
-
{
|
|
2
|
+
<div class="card">
|
|
3
|
+
<a class="btn" role="button" href="{{ item.page }}">
|
|
4
|
+
<div class="card-body">
|
|
5
|
+
<h2 class="card-title">{{ item.name }}</h2>
|
|
6
|
+
<p class="card-text">{{ item.description }}</p>
|
|
7
|
+
</div>
|
|
8
|
+
</a>
|
|
10
9
|
</div>
|
|
11
|
-
{%
|
|
12
|
-
</section>
|
|
10
|
+
{% endfor %}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
<section class="
|
|
1
|
+
<section id="news-and-events" class="home__news-and-events">
|
|
2
2
|
|
|
3
|
-
<h2>News and events</h2>
|
|
3
|
+
<h2 class="home__news-and-events__title">News and events</h2>
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
</
|
|
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>
|
|
12
17
|
|
|
13
18
|
</section>
|
data/_includes/home/planet.html
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
<section class="
|
|
1
|
+
<section id="around-centos" class="home__planet">
|
|
2
2
|
|
|
3
|
-
<h2>Around CentOS</h2>
|
|
3
|
+
<h2 class="home__planet__title">Around CentOS</h2>
|
|
4
4
|
|
|
5
|
-
<
|
|
5
|
+
<div class="home__planet__content">
|
|
6
6
|
{% assign entries = site.data.centos.planet %}
|
|
7
7
|
{% for i in entries limit:5 %}
|
|
8
8
|
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
</
|
|
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>
|
|
12
17
|
|
|
13
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>
|
data/_includes/hr.html
ADDED
data/_includes/navbar.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<nav class="navbar
|
|
1
|
+
<nav class="navbar">
|
|
2
2
|
<div class="container">
|
|
3
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 }}"> <span class="manifestation">{{ site.data.centos.identity.logo.manifestation }}</span></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>
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
{% else %}
|
|
5
5
|
<div class="post__nav__explorer__newer--disabled">
|
|
6
6
|
{% endif %}
|
|
7
|
-
<a href="{{ page.previous.url | remove:'index.html' }}"><button type="button" class="btn btn-
|
|
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
8
|
</div>
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
<div class="post__nav_explorer__feeds">
|
|
11
|
-
<a href="{{ "/feed.xml" | relative_url }}"><button type="button" class="btn btn-
|
|
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="/news-and-events/"><button type="button" class="btn btn-
|
|
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
15
|
</div>
|
|
16
16
|
{% if page.next.url %}
|
|
17
17
|
<div class="post__nav__explorer__older">
|
|
18
18
|
{% else %}
|
|
19
19
|
<div class="post__nav__explorer__older--disabled">
|
|
20
20
|
{% endif %}
|
|
21
|
-
<a href="{{ page.next.url | remove:'index.html' }}"><button type="button" class="btn btn-
|
|
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
22
|
</div>
|
|
23
23
|
</nav>
|
data/_includes/toc.html
CHANGED
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
{{ my_toc | lstrip }}{% endcapture %}
|
|
95
95
|
{% endif %}{% endcapture %}
|
|
96
96
|
|
|
97
|
-
{% if my_toc != "" %}
|
|
98
97
|
<div class="toc">
|
|
98
|
+
{% if my_toc != "" %}
|
|
99
99
|
<header class="toc__header">On this page:</header>
|
|
100
100
|
<section class="toc__section">
|
|
101
101
|
{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
|
|
102
102
|
</section>
|
|
103
|
-
</div>
|
|
104
103
|
{% endif %}
|
|
104
|
+
</div>
|
data/_includes/top.html
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<a href="#top"><button title="Page top" type="button" data-toggle="tooltip" class="btn btn-
|
|
1
|
+
<div id="topbtn">
|
|
2
|
+
<a href="#top"><button title="Page top" type="button" data-toggle="tooltip" class="btn btn-light"><i class="fas fa-arrow-up"></i></button></a>
|
|
3
3
|
</div>
|
data/_layouts/aside.html
CHANGED
|
@@ -13,20 +13,13 @@ layout: default
|
|
|
13
13
|
|
|
14
14
|
<div class="aside__content__nav">
|
|
15
15
|
<div class="aside__nav__explorer">
|
|
16
|
-
{% include top.html %}
|
|
17
16
|
</div>
|
|
18
17
|
</div>
|
|
19
|
-
|
|
20
18
|
</article>
|
|
21
19
|
|
|
22
20
|
<aside class="aside__nav">
|
|
23
21
|
{% include breadcrumbs.html %}
|
|
24
22
|
{% include toc.html html=content %}
|
|
25
|
-
|
|
26
|
-
<div class="aside__nav__explorer">
|
|
27
|
-
{% include top.html %}
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
23
|
</aside>
|
|
31
24
|
|
|
32
25
|
</main>
|
data/_layouts/default.html
CHANGED
data/_layouts/home.html
CHANGED
|
@@ -9,24 +9,15 @@
|
|
|
9
9
|
{% include header.html -%}
|
|
10
10
|
|
|
11
11
|
<main class="home">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<div class="col-sm-12 col-lg-8">
|
|
15
|
-
{% include home/news-and-events.html %}
|
|
16
|
-
{% include home/planet.html -%}
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-12 col-lg-4">
|
|
19
|
-
{% include home/distributions.html -%}
|
|
20
|
-
{% include home/sponsors.html %}
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
12
|
+
{% include home/news-and-events.html %}
|
|
13
|
+
{% include home/planet.html -%}
|
|
24
14
|
</main>
|
|
25
15
|
|
|
26
16
|
{% include footer.html -%}
|
|
27
17
|
|
|
28
18
|
<script src="/assets/js/jquery.min.js"></script>
|
|
29
19
|
<script src="/assets/js/bootstrap.min.js"></script>
|
|
20
|
+
<script src="/assets/js/customization.js"></script>
|
|
30
21
|
</body>
|
|
31
22
|
|
|
32
23
|
</html>
|
data/_layouts/page.html
CHANGED
data/_layouts/search.html
CHANGED
data/_sass/centos/_footer.scss
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
.footer {
|
|
2
2
|
|
|
3
|
+
flex: 1;
|
|
4
|
+
|
|
3
5
|
@include header-links;
|
|
4
6
|
|
|
5
7
|
background-image: url($centos-img-motif);
|
|
6
8
|
background-size: cover;
|
|
7
|
-
background-position: top
|
|
9
|
+
background-position: top left;
|
|
8
10
|
|
|
9
11
|
%-margin {
|
|
10
12
|
margin-top: $line-height-base * 1.5rem;
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
.links {
|
|
28
|
-
@extend .col-
|
|
30
|
+
@extend .col-md-3;
|
|
29
31
|
@extend %-margin;
|
|
30
32
|
}
|
|
31
33
|
|
|
@@ -41,15 +43,19 @@
|
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
.sponsor {
|
|
44
|
-
@extend .col;
|
|
45
46
|
@extend %-margin;
|
|
46
47
|
display: flex;
|
|
47
48
|
justify-content: space-between;
|
|
48
49
|
flex-direction: row;
|
|
50
|
+
flex-wrap: wrap;
|
|
49
51
|
&__message {
|
|
52
|
+
@extend .col-md-6, .col-lg-8;
|
|
50
53
|
}
|
|
51
54
|
&__logo {
|
|
55
|
+
@extend .col-md-6, .col-lg-4;
|
|
56
|
+
text-align: center;
|
|
52
57
|
img {
|
|
58
|
+
height: 90px;
|
|
53
59
|
padding: 15px;
|
|
54
60
|
background-color: $white;
|
|
55
61
|
}
|
|
@@ -62,4 +68,11 @@
|
|
|
62
68
|
font-size: small;
|
|
63
69
|
}
|
|
64
70
|
|
|
71
|
+
#topbtn {
|
|
72
|
+
position: fixed;
|
|
73
|
+
bottom: 15px;
|
|
74
|
+
right: 15px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
65
78
|
}
|
data/_sass/centos/_header.scss
CHANGED
|
@@ -6,25 +6,70 @@
|
|
|
6
6
|
background-image: url($centos-img-motif);
|
|
7
7
|
background-color: $dark;
|
|
8
8
|
background-size: cover;
|
|
9
|
-
background-position: top
|
|
9
|
+
background-position: top left;
|
|
10
10
|
|
|
11
11
|
text-shadow: 0 0 5px $dark;
|
|
12
12
|
|
|
13
13
|
&__home {
|
|
14
14
|
display: flex;
|
|
15
|
-
|
|
16
|
-
flex-direction: column;
|
|
15
|
+
flex-wrap: wrap;
|
|
17
16
|
|
|
18
17
|
padding-top: calc(#{$navbar-brand-height} * 4);
|
|
19
|
-
padding-bottom: calc(#{$navbar-brand-height} * 6);
|
|
20
18
|
margin-top: $navbar-brand-height;
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
.card {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
border: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__presentation {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
justify-content: center;
|
|
23
29
|
@extend .container;
|
|
30
|
+
|
|
31
|
+
&__title, &__description, &__preamble, &__distributions {
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__description {
|
|
35
|
+
@extend .lead;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__distributions {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
@include media-breakpoint-up(lg) { flex-wrap: nowrap; }
|
|
43
|
+
|
|
44
|
+
.card {
|
|
45
|
+
background: rgba(0, 0, 0, 0.3);
|
|
46
|
+
margin-bottom: 15px;
|
|
47
|
+
border-radius: 10px;
|
|
48
|
+
}
|
|
49
|
+
.card-body {
|
|
50
|
+
text-align: left;
|
|
51
|
+
}
|
|
52
|
+
.card:nth-child(1) {
|
|
53
|
+
@include media-breakpoint-up(lg) { margin-right: 15px; }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
24
56
|
}
|
|
25
57
|
|
|
26
|
-
&
|
|
27
|
-
|
|
58
|
+
&__shortcuts {
|
|
59
|
+
background: rgba(0, 0, 0, 0.3);
|
|
60
|
+
width: 100%;
|
|
61
|
+
margin-top: calc(#{$navbar-brand-height} * 4);
|
|
62
|
+
|
|
63
|
+
.card {
|
|
64
|
+
font-size: small;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__community {
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: space-around;
|
|
70
|
+
flex-wrap: wrap;
|
|
71
|
+
@extend .container;
|
|
72
|
+
}
|
|
28
73
|
}
|
|
29
74
|
}
|
|
30
75
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.hr {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
justify-content: space-around;
|
|
5
|
+
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 5px;
|
|
8
|
+
|
|
9
|
+
background-color: $centos-color-3;
|
|
10
|
+
|
|
11
|
+
&__centos-color-0 {
|
|
12
|
+
width: 25%;
|
|
13
|
+
background-color: $centos-color-0;
|
|
14
|
+
}
|
|
15
|
+
&__centos-color-1 {
|
|
16
|
+
width: 25%;
|
|
17
|
+
background-color: $centos-color-1;
|
|
18
|
+
}
|
|
19
|
+
&__centos-color-2 {
|
|
20
|
+
width: 25%;
|
|
21
|
+
background-color: $centos-color-2;
|
|
22
|
+
}
|
|
23
|
+
&__centos-color-3 {
|
|
24
|
+
width: 25%;
|
|
25
|
+
background-color: $centos-color-3;
|
|
26
|
+
}
|
|
27
|
+
}
|
data/_sass/centos/_main.scss
CHANGED
|
@@ -1,54 +1,57 @@
|
|
|
1
|
-
|
|
1
|
+
.page, .blog, .aside, .download, .sponsors, .search, .post {
|
|
2
2
|
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
min-height: 100vh;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.home, .page, .blog, .aside, .download, .sponsors, .search, .post {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex: 1;
|
|
10
3
|
@extend .container;
|
|
11
4
|
}
|
|
12
5
|
|
|
13
6
|
.home {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
margin-
|
|
22
|
-
margin-bottom: $paragraph-margin-bottom;
|
|
7
|
+
flex-wrap: nowrap;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
|
|
10
|
+
&__planet, &__news-and-events {
|
|
11
|
+
&__title {
|
|
12
|
+
text-align: center;
|
|
13
|
+
&:nth-child(1){
|
|
14
|
+
margin-top: 2rem;
|
|
23
15
|
}
|
|
24
16
|
}
|
|
25
|
-
&
|
|
26
|
-
.
|
|
17
|
+
&__content {
|
|
18
|
+
@extend .container;
|
|
19
|
+
margin-top: 1em;
|
|
20
|
+
margin-bottom: 1em;
|
|
21
|
+
.btn {
|
|
22
|
+
text-align: left;
|
|
23
|
+
padding: 0;
|
|
27
24
|
margin: 1em;
|
|
28
|
-
|
|
25
|
+
border-radius: 10px;
|
|
26
|
+
}
|
|
27
|
+
.card {
|
|
28
|
+
padding: 2em;
|
|
29
|
+
box-shadow: 0px 2px 3px 0px rgba(50, 50, 50, 0.25);
|
|
30
|
+
border-radius: 10px;
|
|
31
|
+
background: $white;
|
|
29
32
|
border: none;
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
height: 50px;
|
|
34
|
+
.card-body {
|
|
35
|
+
padding: 0;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
}
|
|
39
|
+
&__news-and-events {
|
|
40
|
+
&__title {
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
&__planet {
|
|
44
|
+
&__title {
|
|
39
45
|
}
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
.aside {
|
|
44
|
-
display: flex;
|
|
45
|
-
|
|
46
50
|
&__nav {
|
|
47
51
|
@include aside-nav;
|
|
48
52
|
}
|
|
49
|
-
|
|
50
53
|
&__content {
|
|
51
|
-
@extend .col-sm-12, .col-md-12, .col-lg-
|
|
54
|
+
@extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-8;
|
|
52
55
|
@include content;
|
|
53
56
|
@include content-nav;
|
|
54
57
|
}
|
|
@@ -56,7 +59,7 @@ body {
|
|
|
56
59
|
|
|
57
60
|
.page {
|
|
58
61
|
&__content {
|
|
59
|
-
@extend .col-sm-12;
|
|
62
|
+
@extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
|
|
60
63
|
@include content;
|
|
61
64
|
}
|
|
62
65
|
}
|
|
@@ -64,7 +67,7 @@ body {
|
|
|
64
67
|
.blog {
|
|
65
68
|
|
|
66
69
|
&__content {
|
|
67
|
-
@extend .col-sm-12;
|
|
70
|
+
@extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
|
|
68
71
|
@include content;
|
|
69
72
|
|
|
70
73
|
&__breadcrumb {
|
|
@@ -113,7 +116,7 @@ body {
|
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
&__content {
|
|
116
|
-
@extend .col-sm-12, .col-md-12, .col-lg-
|
|
119
|
+
@extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-8;
|
|
117
120
|
@include content;
|
|
118
121
|
@include content-nav;
|
|
119
122
|
}
|
|
@@ -122,7 +125,7 @@ body {
|
|
|
122
125
|
|
|
123
126
|
.search {
|
|
124
127
|
&__content {
|
|
125
|
-
@extend .col-sm-12;
|
|
128
|
+
@extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
|
|
126
129
|
@include content;
|
|
127
130
|
|
|
128
131
|
.ais-search-box {
|
|
@@ -142,7 +145,6 @@ body {
|
|
|
142
145
|
font-style: normal;
|
|
143
146
|
}
|
|
144
147
|
.post-breadcrumbs {
|
|
145
|
-
display: block;
|
|
146
148
|
font-size: small;
|
|
147
149
|
}
|
|
148
150
|
.post-snippet img {
|
data/_sass/centos/_nav.scss
CHANGED
data/_sass/centos/_toc.scss
CHANGED
|
@@ -6,14 +6,14 @@ $centos-color-0: #9ccd2a;
|
|
|
6
6
|
$centos-color-1: #efa724;
|
|
7
7
|
$centos-color-2: #a14f8c;
|
|
8
8
|
$centos-color-3: #262577;
|
|
9
|
-
$centos-img-logo: "
|
|
10
|
-
$centos-img-motif: "
|
|
9
|
+
$centos-img-logo: "../img/logo.png";
|
|
10
|
+
$centos-img-motif: "../img/motif.png";
|
|
11
11
|
|
|
12
12
|
// Color system - based in the artistic motif palette and the number of
|
|
13
13
|
// occurrence each color has in the image.
|
|
14
14
|
$white: #fff;
|
|
15
|
-
$primary:
|
|
16
|
-
$secondary:
|
|
15
|
+
$primary: $centos-color-2;
|
|
16
|
+
$secondary: $centos-color-3;
|
|
17
17
|
$dark: #020008;
|
|
18
18
|
|
|
19
19
|
// Header
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
margin-bottom: 1rem;
|
|
20
20
|
}
|
|
21
21
|
.avatar {
|
|
22
|
-
border-radius:
|
|
22
|
+
border-radius: $border-radius;
|
|
23
23
|
margin-right: 1rem;
|
|
24
24
|
margin-bottom: 1rem;
|
|
25
25
|
}
|
|
26
26
|
.comment-body {
|
|
27
|
-
border-radius:
|
|
27
|
+
border-radius: $border-radius;
|
|
28
28
|
background: #f8f8f8;
|
|
29
29
|
padding: 1rem;
|
|
30
30
|
}
|
data/_sass/centos/centos.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jekyll-theme-centos v0.
|
|
2
|
+
* jekyll-theme-centos v0.8.0 (https://gitlab.com/areguera/jekyll-theme-centos/)
|
|
3
3
|
* Copyright 2020-2021 Alain Reguera Delgado
|
|
4
4
|
* Licensed under MIT (https://gitlab.com/areguera/jekyll-theme-centos/-/blob/master/LICENSE)
|
|
5
5
|
*/
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@import "centos/toc";
|
|
16
16
|
@import "centos/breadcrumbs";
|
|
17
17
|
@import "centos/nav";
|
|
18
|
+
@import "centos/hr";
|
|
18
19
|
@import "centos/header";
|
|
19
20
|
@import "centos/main";
|
|
20
21
|
@import "centos/footer";
|
|
@@ -3,27 +3,20 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
margin-top: 15px;
|
|
5
5
|
margin-left: 15px;
|
|
6
|
-
margin-bottom:
|
|
7
|
-
|
|
6
|
+
margin-bottom: 15px;
|
|
8
7
|
align-self: start;
|
|
9
|
-
position: sticky;
|
|
10
|
-
top: calc(#{$navbar-brand-height + $paragraph-margin-bottom} + 10px);
|
|
11
8
|
|
|
12
9
|
&__explorer {
|
|
13
10
|
display: flex;
|
|
14
11
|
justify-content: space-between;
|
|
15
12
|
flex-direction: row;
|
|
16
|
-
border-top: 1px solid $gray-300;
|
|
17
|
-
margin-top: $paragraph-margin-bottom;
|
|
18
|
-
margin-bottom: $paragraph-margin-bottom;
|
|
19
|
-
padding-top: $paragraph-margin-bottom;
|
|
20
13
|
}
|
|
21
14
|
|
|
22
15
|
.toc {
|
|
23
16
|
&__section {
|
|
24
17
|
flex-direction: column;
|
|
25
|
-
max-height: 65vh;
|
|
26
18
|
overflow-y: auto;
|
|
19
|
+
max-height: 75vh;
|
|
27
20
|
}
|
|
28
21
|
}
|
|
29
22
|
|
|
@@ -31,8 +24,11 @@
|
|
|
31
24
|
display: none;
|
|
32
25
|
}
|
|
33
26
|
|
|
34
|
-
@include media-breakpoint-up(
|
|
35
|
-
display:
|
|
27
|
+
@include media-breakpoint-up(xl) {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-flow: column nowrap;
|
|
30
|
+
position: sticky;
|
|
31
|
+
top: calc(#{$navbar-brand-height + $paragraph-margin-bottom} + 10px);
|
|
36
32
|
}
|
|
37
33
|
|
|
38
34
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
padding: 2.75rem;
|
|
5
5
|
margin-top: -120px;
|
|
6
6
|
box-shadow: 0px -2px 3px 0px rgba(50, 50, 50, 0.25);
|
|
7
|
+
border-radius: 10px 10px 0 0;
|
|
7
8
|
|
|
8
9
|
h1, h2, h3, h4, h5, h6 {
|
|
9
10
|
scroll-margin-top: $scroll-margin-top + 2.5;
|
|
@@ -15,7 +16,6 @@
|
|
|
15
16
|
|
|
16
17
|
h2 {
|
|
17
18
|
margin-top: $scroll-margin-top;
|
|
18
|
-
border-bottom: 3px solid $dark;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
img {
|
|
@@ -74,4 +74,5 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
@include code-header;
|
|
77
|
+
|
|
77
78
|
}
|
data/assets/img/motif.png
CHANGED
|
Binary file
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// Copy code
|
|
1
2
|
// Thanks Aleksandr
|
|
2
3
|
// https://www.aleksandrhovhannisyan.com/blog/how-to-add-a-copy-to-clipboard-button-to-your-jekyll-blog/
|
|
3
4
|
const codeBlocks = document.querySelectorAll(".code-header + .highlighter-rouge");
|
|
@@ -16,3 +17,13 @@ copyCodeButtons.forEach((copyCodeButton, index) => {
|
|
|
16
17
|
}, 2000);
|
|
17
18
|
});
|
|
18
19
|
});
|
|
20
|
+
|
|
21
|
+
// Show top page button after scrolling down.
|
|
22
|
+
$("#topbtn").hide();
|
|
23
|
+
$(window).scroll(function() {
|
|
24
|
+
if ($(window).scrollTop() > 100) {
|
|
25
|
+
$("#topbtn").fadeIn("slow");
|
|
26
|
+
} else {
|
|
27
|
+
$("#topbtn").fadeOut("fast");
|
|
28
|
+
}
|
|
29
|
+
});
|
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: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alain Reguera Delgado
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-07-
|
|
11
|
+
date: 2021-07-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -82,7 +82,9 @@ files:
|
|
|
82
82
|
- _includes/home/distributions.html
|
|
83
83
|
- _includes/home/news-and-events.html
|
|
84
84
|
- _includes/home/planet.html
|
|
85
|
+
- _includes/home/shortcuts.html
|
|
85
86
|
- _includes/home/sponsors.html
|
|
87
|
+
- _includes/hr.html
|
|
86
88
|
- _includes/navbar.html
|
|
87
89
|
- _includes/page/alert-danger.html
|
|
88
90
|
- _includes/page/alert-info.html
|
|
@@ -201,6 +203,7 @@ files:
|
|
|
201
203
|
- _sass/centos/_footer.scss
|
|
202
204
|
- _sass/centos/_header.scss
|
|
203
205
|
- _sass/centos/_highlighter.scss
|
|
206
|
+
- _sass/centos/_hr.scss
|
|
204
207
|
- _sass/centos/_main.scss
|
|
205
208
|
- _sass/centos/_mixins.scss
|
|
206
209
|
- _sass/centos/_nav.scss
|
|
@@ -350,7 +353,7 @@ files:
|
|
|
350
353
|
- assets/img/post.png
|
|
351
354
|
- assets/js/bootstrap.min.js
|
|
352
355
|
- assets/js/bootstrap.min.js.map
|
|
353
|
-
- assets/js/
|
|
356
|
+
- assets/js/customization.js
|
|
354
357
|
- assets/js/dataTables.bootstrap4.min.js
|
|
355
358
|
- assets/js/instantsearch.min.js
|
|
356
359
|
- assets/js/jquery.dataTables.min.js
|