jekyll-theme-centos 0.7.5 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b61096fee457168fb5f9aadc4acb5e3c5666ad33e81ce6a7e1e3e1230201b371
4
- data.tar.gz: eb30465655c6f005feea9c13d9d13cff716184fbab9ecb42d47606c78385ebdd
3
+ metadata.gz: 682e4a9c2954020bc03944179b37220b4bdfdacbca57885513ec6ae7ec0111e0
4
+ data.tar.gz: 202767fded8eebf83b57a22b992ff77a345d8a27d342727b12dd24d0ad1ab1c7
5
5
  SHA512:
6
- metadata.gz: 82b7d901b04d5e1e890eadfde5a8f0d9519b096da10b422235383462cd6053544e2d333432deacc9e497617bb3006c8c1aa9ee88344f986ad941c7ae78539fcc
7
- data.tar.gz: 2af17d93fe67ad6a070a16328c82a888be5eed9dd9c7be5535ecd2172e1caeca93f2d7820abb783121d56a880c46d25d27b0f50c2b37c1a445be8f7d8cb8c90c
6
+ metadata.gz: c0de5c86c649f8fae0544830f6c3a478d7fb3a6eb54bd1d8990cf51366405e82c3ff4052935e7b066f311884d7ca49ba55c358877cce730a8e2849a384e33d3a
7
+ data.tar.gz: 89aa23b63ea5fb3d5eb66b287c2efaf2f3bf7980589ce35b059a76295f5b5fc243c8a58fa44b180aef4ee5a922caec9eb0d148e475479fb0b9079577d05480b2
@@ -35,6 +35,8 @@
35
35
  <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>
36
36
  </section>
37
37
  </div>
38
-
39
38
  </div>
39
+
40
+ {% include top.html %}
41
+
40
42
  </footer>
@@ -1,4 +1,4 @@
1
- <nav class="navbar fixed-top navbar-expand-lg navbar-dark">
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-primary" data-toggle="tooltip" data-placement="top" title="Previous Post - {{ page.previous.title }}"><i class="fas fa-arrow-left"></i></button></a>
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
- {% include top.html %}
9
+
10
10
  <div class="post__nav_explorer__feeds">
11
- <a href="{{ "/feed.xml" | relative_url }}"><button type="button" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="RSS"><i class="fas fa-rss"></i></button></a>
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-primary" data-toggle="tooltip" data-placement="top" title="Blog posts"><i class="fas fa-th"></i></button></a>
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-primary" data-toggle="tooltip" data-placement="top" title="Next Post - {{ page.next.title }}"><i class="fas fa-arrow-right"></i></button></a>
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 class="top">
2
- <a href="#top"><button title="Page top" type="button" data-toggle="tooltip" class="btn btn-primary"><i class="fas fa-arrow-circle-up"></i></button></a>
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>
@@ -14,7 +14,7 @@
14
14
 
15
15
  <script src="/assets/js/jquery.min.js"></script>
16
16
  <script src="/assets/js/bootstrap.min.js"></script>
17
- <script src="/assets/js/copycode.js"></script>
17
+ <script src="/assets/js/customization.js"></script>
18
18
  </body>
19
19
 
20
20
  </html>
@@ -29,6 +29,7 @@
29
29
  } );
30
30
  </script>
31
31
  <script src="/assets/js/bootstrap.min.js"></script>
32
+ <script src="/assets/js/customization.js"></script>
32
33
  </body>
33
34
 
34
35
  </html>
data/_layouts/home.html CHANGED
@@ -27,6 +27,7 @@
27
27
 
28
28
  <script src="/assets/js/jquery.min.js"></script>
29
29
  <script src="/assets/js/bootstrap.min.js"></script>
30
+ <script src="/assets/js/customization.js"></script>
30
31
  </body>
31
32
 
32
33
  </html>
data/_layouts/page.html CHANGED
@@ -12,9 +12,6 @@ layout: default
12
12
 
13
13
  {{ content }}
14
14
 
15
- <nav class="page__content__nav">
16
- {% include top.html %}
17
- </nav>
18
15
  </article>
19
16
 
20
17
  </main>
data/_layouts/search.html CHANGED
@@ -34,6 +34,7 @@
34
34
 
35
35
  <script src="/assets/js/jquery.min.js"></script>
36
36
  <script src="/assets/js/bootstrap.min.js"></script>
37
+ <script src="/assets/js/customization.js"></script>
37
38
  </body>
38
39
 
39
40
  </html>
@@ -1,5 +1,7 @@
1
1
  .footer {
2
2
 
3
+ flex: 1;
4
+
3
5
  @include header-links;
4
6
 
5
7
  background-image: url($centos-img-motif);
@@ -62,4 +64,11 @@
62
64
  font-size: small;
63
65
  }
64
66
 
67
+ #topbtn {
68
+ position: fixed;
69
+ bottom: 15px;
70
+ right: 15px;
71
+ }
72
+
73
+
65
74
  }
@@ -6,13 +6,12 @@ body {
6
6
 
7
7
  .home, .page, .blog, .aside, .download, .sponsors, .search, .post {
8
8
  display: flex;
9
- flex: 1;
10
9
  @extend .container;
11
10
  }
12
11
 
13
12
  .home {
14
13
  &__content {
15
- @extend .col-sm-12;
14
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
16
15
  @include content;
17
16
  &__distributions {
18
17
  .btn {
@@ -48,7 +47,7 @@ body {
48
47
  }
49
48
 
50
49
  &__content {
51
- @extend .col-sm-12, .col-md-12, .col-lg-8, .col-xl-8;
50
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-8;
52
51
  @include content;
53
52
  @include content-nav;
54
53
  }
@@ -56,7 +55,7 @@ body {
56
55
 
57
56
  .page {
58
57
  &__content {
59
- @extend .col-sm-12;
58
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
60
59
  @include content;
61
60
  }
62
61
  }
@@ -64,7 +63,7 @@ body {
64
63
  .blog {
65
64
 
66
65
  &__content {
67
- @extend .col-sm-12;
66
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
68
67
  @include content;
69
68
 
70
69
  &__breadcrumb {
@@ -113,7 +112,7 @@ body {
113
112
  }
114
113
 
115
114
  &__content {
116
- @extend .col-sm-12, .col-md-12, .col-lg-8, .col-xl-8;
115
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-8;
117
116
  @include content;
118
117
  @include content-nav;
119
118
  }
@@ -122,7 +121,7 @@ body {
122
121
 
123
122
  .search {
124
123
  &__content {
125
- @extend .col-sm-12;
124
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
126
125
  @include content;
127
126
 
128
127
  .ais-search-box {
@@ -142,7 +141,6 @@ body {
142
141
  font-style: normal;
143
142
  }
144
143
  .post-breadcrumbs {
145
- display: block;
146
144
  font-size: small;
147
145
  }
148
146
  .post-snippet img {
@@ -1,8 +1,14 @@
1
1
  .navbar {
2
+ @extend .fixed-top;
3
+ @extend .navbar-expand-xl;
4
+ @extend .navbar-dark;
5
+
2
6
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
7
+
3
8
  &-dark {
4
9
  background: $dark;
5
10
  }
11
+
6
12
  &-brand {
7
13
  .manifestation {
8
14
  color: white;
@@ -1,6 +1,9 @@
1
1
  .toc {
2
2
  font-size: small;
3
- margin-bottom: calc(#{$paragraph-margin-bottom} * 1.25);
3
+
4
+ @include media-breakpoint-up(xm) {
5
+ margin-bottom: calc(#{$paragraph-margin-bottom} * 1.25);
6
+ }
4
7
 
5
8
  &__header {
6
9
  font-weight: $headings-font-weight;
@@ -6,8 +6,8 @@ $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: "/assets/img/logo.png";
10
- $centos-img-motif: "/assets/img/motif.png";
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.
@@ -33,7 +33,7 @@ $paragraph-margin-bottom: 1.8rem;
33
33
  $code-color: $dark;
34
34
 
35
35
  // Typography - Font, line-height, and color for body text, headings, and more.
36
- $font-family-path: "/assets/fonts";
36
+ $font-family-path: "../fonts";
37
37
  $font-family-sans-serif: Montserrat;
38
38
  $line-height-base: 1.75;
39
39
  $headings-line-height: $line-height-base - 0.3;
@@ -11,8 +11,6 @@
11
11
  // sites (e.g., mirror.centos.org, people.centos.org and all the
12
12
  // user-specific pages under it.
13
13
  &__list {
14
- padding-bottom: $paragraph-margin-bottom;
15
- border-bottom: 1px solid lightgray;
16
14
  }
17
15
  img {
18
16
  width: auto;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jekyll-theme-centos v0.7.5 (https://gitlab.com/areguera/jekyll-theme-centos/)
2
+ * jekyll-theme-centos v0.7.9 (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
  */
@@ -3,27 +3,20 @@
3
3
  width: 100%;
4
4
  margin-top: 15px;
5
5
  margin-left: 15px;
6
- margin-bottom: $paragraph-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(lg) {
35
- display: block;
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
  }
@@ -3,8 +3,11 @@
3
3
  margin: 0;
4
4
  @include media-breakpoint-up(xm) {
5
5
  display: block;
6
+ .top {
7
+ margin-top: $paragraph-margin-bottom;
8
+ }
6
9
  }
7
- @include media-breakpoint-up(lg) {
10
+ @include media-breakpoint-up(xl) {
8
11
  display: none;
9
12
  }
10
13
  }
@@ -74,4 +74,5 @@
74
74
  }
75
75
 
76
76
  @include code-header;
77
+
77
78
  }
@@ -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.7.5
4
+ version: 0.7.9
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-04 00:00:00.000000000 Z
11
+ date: 2021-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -350,7 +350,7 @@ files:
350
350
  - assets/img/post.png
351
351
  - assets/js/bootstrap.min.js
352
352
  - assets/js/bootstrap.min.js.map
353
- - assets/js/copycode.js
353
+ - assets/js/customization.js
354
354
  - assets/js/dataTables.bootstrap4.min.js
355
355
  - assets/js/instantsearch.min.js
356
356
  - assets/js/jquery.dataTables.min.js