jekyll-theme-centos 0.3.0 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/download/body-doc.html +3 -3
  3. data/_includes/download/body-eol.html +2 -2
  4. data/_includes/download/body.html +4 -4
  5. data/_includes/download/cards.html +3 -3
  6. data/_includes/download/linux.html +3 -3
  7. data/_includes/download/linux/7-doc.html +1 -1
  8. data/_includes/download/linux/7-eol.html +1 -1
  9. data/_includes/download/linux/7.html +1 -1
  10. data/_includes/download/linux/8-doc.html +1 -1
  11. data/_includes/download/linux/8-eol.html +1 -1
  12. data/_includes/download/linux/8.html +1 -1
  13. data/_includes/download/stream.html +2 -2
  14. data/_includes/download/stream/8-doc.html +1 -1
  15. data/_includes/download/stream/8-eol.html +1 -1
  16. data/_includes/download/stream/8.html +1 -1
  17. data/_includes/footer.html +5 -5
  18. data/_includes/header/home.html +0 -10
  19. data/_includes/home/distributions.html +12 -0
  20. data/_includes/home/news-and-events.html +13 -0
  21. data/_includes/home/{around.html → planet.html} +1 -1
  22. data/_includes/home/sponsors.html +2 -2
  23. data/_includes/navbar.html +7 -7
  24. data/_includes/post-nav-explorer.html +23 -0
  25. data/_includes/post-nav.html +3 -0
  26. data/_includes/search.html +76 -57
  27. data/_includes/top.html +1 -1
  28. data/_layouts/aside.html +16 -1
  29. data/_layouts/blog.html +14 -29
  30. data/_layouts/download-mirror.html +5 -2
  31. data/_layouts/home.html +16 -2
  32. data/_layouts/page.html +9 -5
  33. data/_layouts/post.html +16 -29
  34. data/_layouts/search.html +36 -10
  35. data/_layouts/sponsors.html +5 -2
  36. data/_sass/centos/_footer.scss +1 -2
  37. data/_sass/centos/_header.scss +10 -25
  38. data/_sass/centos/_main.scss +80 -83
  39. data/_sass/centos/_mixins.scss +3 -0
  40. data/_sass/centos/_nav.scss +3 -0
  41. data/_sass/centos/_toc.scss +2 -1
  42. data/_sass/centos/_variables.scss +27 -21
  43. data/_sass/centos/mixins/_aside-nav.scss +24 -13
  44. data/_sass/centos/mixins/_content-nav.scss +11 -0
  45. data/_sass/centos/mixins/_content.scss +17 -25
  46. data/_sass/centos/mixins/_link-list.scss +1 -1
  47. data/_sass/centos/mixins/_post-nav-explorer.scss +21 -0
  48. data/assets/js/instantsearch.min.js +3 -0
  49. metadata +11 -6
  50. data/_includes/home/news-and-sponsors.html +0 -8
  51. data/_includes/home/news.html +0 -13
data/_includes/top.html CHANGED
@@ -1,3 +1,3 @@
1
1
  <div class="top">
2
- <a href="#top"><button class="btn btn-light"><i class="fas fa-arrow-circle-up"></i></button></a>
2
+ <a href="#top"><button title="Page top" type="button" data-toggle="tooltip" class="btn btn-light"><i class="fas fa-arrow-circle-up"></i></button></a>
3
3
  </div>
data/_layouts/aside.html CHANGED
@@ -5,13 +5,28 @@ layout: default
5
5
  <main class="aside">
6
6
 
7
7
  <article class="aside__content">
8
+ <div class="aside__content__nav">
9
+ {% include breadcrumbs.html %}
10
+ {% include toc.html html=content %}
11
+ </div>
8
12
  {{ content }}
13
+
14
+ <div class="aside__content__nav">
15
+ <div class="aside__nav__explorer">
16
+ {% include top.html %}
17
+ </div>
18
+ </div>
19
+
9
20
  </article>
10
21
 
11
22
  <aside class="aside__nav">
12
23
  {% include breadcrumbs.html %}
13
24
  {% include toc.html html=content %}
14
- {% include top.html %}
25
+
26
+ <div class="aside__nav__explorer">
27
+ {% include top.html %}
28
+ </div>
29
+
15
30
  </aside>
16
31
 
17
32
  </main>
data/_layouts/blog.html CHANGED
@@ -4,24 +4,26 @@ layout: default
4
4
 
5
5
  <main class="blog">
6
6
 
7
- <ol class="blog__breadcrumb">
8
- <li class="blog__breadcrumb__item"><a href="/">Home</a></li>
9
- <li class="blog__breadcrumb__item abreadcrumb-item--active">{{ page.title | capitalize }}</li>
7
+ <div class="blog__content">
8
+
9
+ <ol class="blog__content__breadcrumb">
10
+ <li class="blog__content__breadcrumb__item"><a href="/">Home</a></li>
11
+ <li class="blog__content__breadcrumb__item--active">{{ page.title | capitalize }}</li>
10
12
  </ol>
11
13
 
12
- <section class="blog__entries">
14
+ <section class="blog__content__entries">
13
15
  {%- if site.posts.size > 0 -%}
14
- <div class="blog__entries__card">
16
+ <div class="blog__content__entries__card">
15
17
  {%- for post in paginator.posts -%}
16
- <div class="blog__entries__card__item">
18
+ <div class="blog__content__entries__card__item">
17
19
  {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
18
20
  {%- if post.image -%}
19
- <a href="{{ post.url | relative_url }}"><img class="blog__entries__card__item__image" src="{{ post.image }}" alt="{{ post.title | escape }}"></a>
21
+ <a href="{{ post.url | relative_url }}"><img class="blog__content__entries__card__item__image" src="{{ post.image }}" alt="{{ post.title | escape }}"></a>
20
22
  {%- endif -%}
21
- <a href="{{ post.url | relative_url }}"><h4 class="blog__entries__card__item__title">{{ post.title | escape }}</h4></a>
22
- <p class="blog__entries__card__item__date">{{ post.date | date: date_format }}</p>
23
+ <a href="{{ post.url | relative_url }}"><h4 class="blog__content__entries__card__item__title">{{ post.title | escape }}</h4></a>
24
+ <p class="blog__content__entries__card__item__date">{{ post.date | date: date_format }}</p>
23
25
  {%- if site.show_excerpts -%}
24
- <p class="blog__entries__card__item__excerpt">{{ sponsor.excerpt }}</p>
26
+ <p class="blog__content__entries__card__item__excerpt">{{ sponsor.excerpt }}</p>
25
27
  {%- endif -%}
26
28
  </div>
27
29
  {% endfor %}
@@ -29,25 +31,8 @@ layout: default
29
31
  {%- endif -%}
30
32
  </section>
31
33
 
32
- <nav class="blog__navbar">
33
- {% if paginator.previous_page %}
34
- <div class="blog__navbar__newer">
35
- {% else %}
36
- <div class="blog__navbar__newer--disabled">
37
- {% endif %}
38
- <a href="{{ paginator.previous_page_path }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Newer Posts"><i class="fas fa-arrow-left"></i></button></a>
39
- </div>
40
- <div class="blog__navbar__feeds">
41
- <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>
42
- </div>
43
- {% if paginator.next_page %}
44
- <div class="blog__navbar__older">
45
- {% else %}
46
- <div class="blog__navbar__older--disabled">
47
- {% endif %}
48
- <a href="{{ paginator.next_page_path }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Older Posts"><i class="fas fa-arrow-right"></i></button></a>
49
- </div>
34
+ {% include post-nav-explorer.html %}
35
+
50
36
  </div>
51
- </nav>
52
37
 
53
38
  </main>
@@ -8,9 +8,12 @@
8
8
  {% include navbar.html -%}
9
9
  {% include header.html -%}
10
10
 
11
- <main class="download">
12
- {% include breadcrumbs.html %}
11
+ <main id="main" class="download">
13
12
  <article class="download__content">
13
+ <div class="download__content__nav">
14
+ {% include breadcrumbs.html %}
15
+ {% include toc.html html=content %}
16
+ </div>
14
17
  {{ content }}
15
18
  </article>
16
19
  </main>
data/_layouts/home.html CHANGED
@@ -9,8 +9,22 @@
9
9
  {% include header.html -%}
10
10
 
11
11
  <main class="home">
12
- {% include home/news-and-sponsors.html -%}
13
- {% include home/around.html -%}
12
+ <div class="home__content">
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>
27
+ </div>
14
28
  </main>
15
29
 
16
30
  {% include footer.html -%}
data/_layouts/page.html CHANGED
@@ -4,13 +4,17 @@ layout: default
4
4
 
5
5
  <main class="page">
6
6
 
7
- {% include breadcrumbs.html %}
8
- {% include toc.html html=content %}
9
-
10
7
  <article class="page__content">
8
+ <div class="page__content__nav">
9
+ {% include breadcrumbs.html %}
10
+ {% include toc.html html=content %}
11
+ </div>
12
+
11
13
  {{ content }}
12
- </article>
13
14
 
14
- {% include top.html %}
15
+ <nav class="page__content__nav">
16
+ {% include top.html %}
17
+ </nav>
18
+ </article>
15
19
 
16
20
  </main>
data/_layouts/post.html CHANGED
@@ -4,39 +4,26 @@ layout: default
4
4
 
5
5
  <main class="post">
6
6
 
7
- <section class="post__content">
7
+ <article class="post__content">
8
+
9
+ <nav class="post__content__nav">
10
+ {% include breadcrumbs.html %}
11
+ {% include toc.html html=content %}
12
+ </nav>
13
+
8
14
  {% if page.image %}
9
- <figure>
10
- <img class="figure-img img-fluid" src="{{ page.image }}" alt="{{ page.title | escape }}">
11
- </figure>
15
+ <figure><img class="figure-img img-fluid" src="{{ page.image }}" alt="{{ page.title | escape }}"></figure>
12
16
  {% endif %}
17
+
13
18
  {{ content }}
14
- </section>
15
19
 
16
- <aside class="post__content__nav">
17
- {% include breadcrumbs.html %}
18
- {% include toc.html html=content %}
19
- {% include top.html %}
20
+ <nav class="post__content__nav">
21
+ {% include post-nav-explorer.html %}
22
+ </nav>
23
+ </article>
24
+
25
+ <aside class="post__nav">
26
+ {% include post-nav.html %}
20
27
  </aside>
21
28
 
22
- <nav class="post__navbar">
23
- {% if page.previous.url %}
24
- <div class="post__navbar__newer">
25
- {% else %}
26
- <div class="post__navbar__newer--disabled">
27
- {% endif %}
28
- <a href="{{ page.previous.url }}"><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>
29
- </div>
30
- <div class="blog__navbar_entries">
31
- <a href="{{ "/blog.html" | relative_url }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Blog posts"><i class="fas fa-th"></i></button></a>
32
- </div>
33
- {% if page.next.url %}
34
- <div class="post__navbar__older">
35
- {% else %}
36
- <div class="post__navbar__older--disabled">
37
- {% endif %}
38
- <a href="{{ page.next.url }}"><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>
39
- </div>
40
- </nav>
41
-
42
29
  </main>
data/_layouts/search.html CHANGED
@@ -1,13 +1,39 @@
1
- ---
2
- layout: default
3
- ---
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: 'en' }}">
4
3
 
5
- <main class="search">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
7
+ <title>{{ page.title }}</title>
8
+ <link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon.png">
9
+ <link rel="stylesheet" href="/assets/css/centos.bootstrap.min.css">
10
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch.min.css">
11
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch-theme-algolia.min.css">
12
+ </head>
6
13
 
7
- {% include breadcrumbs.html %}
14
+ <body>
8
15
 
9
- <section class="search__results">
10
- {{ content }}
11
- </section>
12
-
13
- </main>
16
+ {% include navbar.html -%}
17
+ {% include header.html -%}
18
+
19
+ <main class="search">
20
+
21
+ <div class="search__content">
22
+ <div class="search__content__nav">
23
+ {% include breadcrumbs.html %}
24
+ </div>
25
+
26
+ <div class="search__content_results">
27
+ {{ content }}
28
+ </div>
29
+ </div>
30
+
31
+ </main>
32
+
33
+ {% include footer.html -%}
34
+
35
+ <script src="/assets/js/jquery.min.js"></script>
36
+ <script src="/assets/js/bootstrap.min.js"></script>
37
+ </body>
38
+
39
+ </html>
@@ -4,10 +4,13 @@
4
4
 
5
5
  <main class="sponsors">
6
6
 
7
- {% include breadcrumbs.html %}
8
-
9
7
  <div class="sponsors__content">
10
8
 
9
+ <div class="sponsors__content__nav">
10
+ {% include breadcrumbs.html %}
11
+ {% include toc.html html=content %}
12
+ </div>
13
+
11
14
  {{ content }}
12
15
 
13
16
  <div class="sponsors__content__card">
@@ -16,13 +16,12 @@
16
16
  margin-top: $line-height-base * 1.5rem;
17
17
  }
18
18
 
19
- color: $nord-color-6;
19
+ color: $white;
20
20
  background-color: $black;
21
21
  font-size: $font-size-base * 0.9;
22
22
  text-shadow: 0 0 5px $black;
23
23
 
24
24
  scroll-margin-top: $scroll-margin-top;
25
- margin-top: $heading-margin-top;
26
25
 
27
26
  ul {
28
27
  padding: 0;
@@ -9,14 +9,14 @@
9
9
  text-shadow: 0 0 5px $black;
10
10
 
11
11
  &__home {
12
- padding-top: 4rem;
13
- padding-bottom: 3rem;
14
- margin-top: 60px;
15
-
16
12
  display: flex;
17
13
  justify-content: center;
18
14
  flex-direction: column;
19
15
 
16
+ padding-top: calc(#{$navbar-brand-height} * 4);
17
+ padding-bottom: calc(#{$navbar-brand-height} * 6);
18
+ margin-top: $navbar-brand-height;
19
+
20
20
  &__title, &__description, &__preamble {
21
21
  @extend .container;
22
22
  }
@@ -24,24 +24,12 @@
24
24
  &__description {
25
25
  @extend .lead;
26
26
  }
27
-
28
- &__worklines {
29
- @extend .container;
30
- .btn {
31
- @extend .btn, .btn-outline-light;
32
- margin-bottom: 1rem;
33
- margin-right: 1rem;
34
- &:hover {
35
- text-shadow: none;
36
- }
37
- }
38
- }
39
27
  }
40
28
 
41
29
  &__page {
42
- padding-top: 4rem;
43
- padding-bottom: 3rem;
44
- margin-top: 60px;
30
+ padding-top: calc(#{$navbar-brand-height} * 2);
31
+ padding-bottom: calc(#{$navbar-brand-height} * 4);
32
+ margin-top: $navbar-brand-height;
45
33
 
46
34
  display: flex;
47
35
  justify-content: center;
@@ -58,9 +46,9 @@
58
46
  }
59
47
 
60
48
  &__blog, &__post {
61
- padding-top: 4rem;
62
- padding-bottom: 3rem;
63
- margin-top: 60px;
49
+ padding-top: calc(#{$navbar-brand-height} * 2);
50
+ padding-bottom: calc(#{$navbar-brand-height} * 4);
51
+ margin-top: $navbar-brand-height;
64
52
 
65
53
  display: flex;
66
54
  justify-content: space-between;
@@ -82,15 +70,12 @@
82
70
  }
83
71
  }
84
72
  }
85
-
86
73
  &__present {
87
74
  @extend .container;
88
75
  }
89
-
90
76
  &__title, &__description {
91
77
  text-shadow: 0 0 5px $black;
92
78
  }
93
-
94
79
  &__description {
95
80
  @extend .lead;
96
81
  }
@@ -1,21 +1,21 @@
1
1
  .home, .page, .blog, .aside, .download, .sponsors, .search, .post {
2
2
  @extend .container;
3
3
  min-height: calc(30vh);
4
- padding-top: $paragraph-margin-bottom;
5
- padding-bottom: $paragraph-margin-bottom;
6
4
  }
7
5
 
8
6
  .home {
9
- @include content;
10
-
11
- &__news-and-sponsors {
12
- @extend .row;
13
- &__news {
14
- @extend .col;
15
- @include link-list;
7
+ &__content {
8
+ @extend .col-sm-12;
9
+ @include content;
10
+ &__distributions {
11
+ .btn {
12
+ @extend .btn-primary;
13
+ width: 100%;
14
+ margin-right: 15px;
15
+ margin-bottom: $paragraph-margin-bottom;
16
+ }
16
17
  }
17
18
  &__sponsors {
18
- @extend .col-4;
19
19
  .card {
20
20
  margin: 1em;
21
21
  margin-left: 0;
@@ -26,128 +26,122 @@
26
26
  height: 50px;
27
27
  }
28
28
  }
29
- }
30
- &__around {
31
- @include link-list;
29
+ &__planet, &__news-and-events {
30
+ @include link-list;
31
+ }
32
32
  }
33
33
  }
34
34
 
35
35
  .aside {
36
36
  display: flex;
37
37
  align-items: flex-start;
38
- flex-wrap: wrap;
39
38
 
40
39
  &__nav {
41
40
  @include aside-nav;
42
41
  }
43
42
 
44
43
  &__content {
45
- @extend .col-xl-8;
44
+ @extend .col-sm-12, .col-md-12, .col-lg-8, .col-xl-8;
46
45
  @include content;
47
- padding-left: 0;
46
+ @include content-nav;
48
47
  }
49
48
  }
50
49
 
51
50
  .page {
52
51
  &__content {
52
+ @extend .col-sm-12;
53
53
  @include content;
54
+ @include content-nav;
54
55
  }
55
56
  }
56
57
 
57
58
  .blog {
58
- &__breadcrumb {
59
- @extend .breadcrumb;
60
- &__item {
61
- @extend .breadcrumb-item;
62
- &--active {
63
- @extend .active;
64
- }
65
- }
66
- }
67
59
 
68
- &__navbar {
69
- display: flex;
70
- justify-content: space-between;
71
- flex-direction: row;
60
+ &__content {
61
+ @extend .col-sm-12;
62
+ @include content;
72
63
 
73
- &__newer, &__older, &__feeds {
74
- &--disabled {
75
- opacity: 0;
64
+ &__breadcrumb {
65
+ @extend .breadcrumb;
66
+ &__item {
67
+ @extend .breadcrumb-item;
68
+ &--active {
69
+ @extend .breadcrumb-item;
70
+ }
76
71
  }
77
72
  }
78
- }
79
73
 
80
- &__entries {
81
- margin-top: 1rem;
82
- margin-bottom: 1rem;
83
- &__card {
84
- display: flex;
85
- justify-content: space-between;
86
- flex-direction: row;
87
- flex-wrap: wrap;
74
+ &__entries {
75
+ margin-top: 1rem;
76
+ margin-bottom: 1rem;
77
+ &__card {
78
+ display: flex;
79
+ justify-content: space-between;
80
+ flex-direction: row;
81
+ flex-wrap: wrap;
88
82
 
89
- border: none;
83
+ border: none;
90
84
 
91
- &__item {
92
- @extend .col-lg-6;
93
- &__image {
94
- @extend .img-fluid;
95
- padding-bottom: 1em;
85
+ &__item {
86
+ @extend .col-lg-6;
87
+ &__image {
88
+ @extend .img-fluid;
89
+ padding-bottom: 1em;
90
+ }
96
91
  }
97
92
  }
98
93
  }
99
- border-bottom: 1px solid $body-color;
94
+
95
+ &__nav {
96
+ @include post-nav-explorer;
97
+ }
100
98
  }
101
99
  }
102
100
 
103
101
  .post {
104
102
  display: flex;
105
- justify-content: space-between;
106
- flex-direction: row;
107
- flex-wrap: wrap;
108
-
109
- &__navbar {
110
- @extend .col-lg-8;
111
- display: flex;
112
- justify-content: space-between;
113
- flex-direction: row;
114
-
115
- &__newer, &__older {
116
- &--disabled {
117
- opacity: 0;
118
- }
119
- }
120
- &__newer {
121
- margin-right: 0;
122
- }
123
- &__older {
124
- margin-left: 0;
125
- }
103
+ align-items: flex-start;
104
+
105
+ &__nav {
106
+ @include aside-nav;
107
+ @include post-nav-explorer;
126
108
  }
127
109
 
128
110
  &__content {
129
- @extend .col-lg-8;
111
+ @extend .col-sm-12, .col-md-12, .col-lg-8, .col-xl-8;
130
112
  @include content;
131
-
132
- &__nav {
133
- @include aside-nav;
134
- }
113
+ @include content-nav;
135
114
  }
115
+
136
116
  }
137
117
 
138
118
  .search {
139
- &__results {
140
- @include link-list;
119
+ @include content;
141
120
 
142
- .lunrsearchresult {
143
- .title {
144
- margin-top: 0;
145
- }
146
- .url {
147
- color: silver;
148
- }
121
+ .ais-search-box {
122
+ max-width: 100%;
123
+ margin-bottom: 15px;
124
+ }
125
+ .ais-hits {
126
+ @include link-list;
127
+ }
128
+ .ais-pagination {
129
+ li {
130
+ text-decoration: none;
149
131
  }
150
132
  }
133
+ .ais-Highlight {
134
+ font-weight: bold;
135
+ font-style: normal;
136
+ }
137
+ .post-breadcrumbs {
138
+ display: block;
139
+ font-size: small;
140
+ }
141
+ .post-snippet img {
142
+ display: none;
143
+ }
144
+
151
145
  }
152
146
 
153
147
  .download {
@@ -170,6 +164,9 @@
170
164
 
171
165
  .sponsors {
172
166
  &__content {
167
+ @extend .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12;
168
+ @include content;
169
+
173
170
  &__card {
174
171
  display: flex;
175
172
  flex-wrap: wrap;