jekyll-theme-centos 2.51.1.beta.52 → 2.51.1.beta.54

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: 1aa556f1d6b2a167c9e89553297453e79a1935ca3c6753f14f8c92e9a90e9466
4
- data.tar.gz: '028608c3c02f37909f89c31618117cc9e898ab5b9c75f9cf570fb3c9f069e8a4'
3
+ metadata.gz: c512bf1b9823f8e6695ec3308386a0c3c96b038b6681cbcf0fe2384b858c49cd
4
+ data.tar.gz: '0084f9efd74d2d462da9aefad409673b3b3f01f6db8fdb5f6709a787fda713a1'
5
5
  SHA512:
6
- metadata.gz: cae1850729a976b0269eedad82e5a6144c175c90d32cb4a3b93e0d4c9839ea777eca9cbe3c0d76ac4084b3912478e3ac3f4794919363bfed2942dcdaa5476e41
7
- data.tar.gz: 39d719e032d0448027b4dc2e0cce992f1392bc19e194c1aa06b4c6a99b2b43e1730d9a952568287a2e63e485b5069b80b1847ab50f42d287b4c0e0fa7712ccf5
6
+ metadata.gz: b8781ead1b5a6500904a5667624037797cff9dbafdc7ae510a1676e85d6b2dca8ef6a9661006607af24c56f14884e2d8ddf90dd7bfb1d453f9ae2f736ff0983b
7
+ data.tar.gz: 8abf8e6c6b164a8684f32d8da04fba5fd2f318a3922d6c7584655f4b966301c16a93bd3f7d603b21aee5dfa671375423e28911b9f6e8569eb6a3edece05f8201
@@ -1,4 +1,4 @@
1
- <div class="alert alert-{{ include.color | default: 'primary' }} alert-dismissible fade show shadow" role="alert">
1
+ <div class="alert alert-{{ include.color | default: 'primary' }} alert-dismissible fade show shadow mb-3" role="alert">
2
2
  <div class="container d-flex justify-content-between align-items-center">
3
3
  <div class="me-3">
4
4
  <div class="h5 mb-0"><i class="{{ include.icon | default: 'fa-solid fa-bullhorn' }}"></i></div>
@@ -0,0 +1,86 @@
1
+ {%- capture html_banner %}
2
+ {%- comment %}
3
+ Usage:
4
+ {% include base/banner.html %}
5
+
6
+ Optional Parameters:
7
+ * name (string) : ""
8
+ * image (string) : ""
9
+ * image_height (string) : "92"
10
+ * icon (string) : ""
11
+ * description (string) : ""
12
+ * actions (list) : [{"name":"","url":""}]
13
+ * resources (list) : [{"name":"","url":"","icon":""}]
14
+
15
+ Output:
16
+ Page banner.
17
+ {%- endcomment %}
18
+
19
+ {%- assign image = page.with_banner.image | default: include.image %}
20
+ {%- assign image_height = page.with_banner.image_height | default: include.image_height | default: '92' %}
21
+ {%- assign icon = page.with_banner.icon | default: include.icon %}
22
+ {%- assign name = page.with_banner.name | default: include.name %}
23
+ {%- assign description = page.with_banner.description | default: include.description %}
24
+ {%- assign actions = page.with_banner.actions | default: include.actions %}
25
+ {%- assign resources = page.with_banner.resources | default: include.resources %}
26
+
27
+ {%- capture html_banner_image -%}
28
+ {%- if name == nil and description == nil and actions == nil and resources == nil %}
29
+ {%- assign mb = "1" %}
30
+ {%- else %}
31
+ {%- assign mb = "5" %}
32
+ {%- endif %}
33
+ <div class="mt-1 mb-{{ mb }}"><img src="{{ site.url }}{{ site.baseurl }}/assets/img/{{ image }}" height="{{ image_height }}" alt="{{ name }}"></div>
34
+ {%- endcapture %}
35
+
36
+ {%- capture html_banner_icon -%}
37
+ {%- if name == nil and description == nil and actions == nil and resources == nil %}
38
+ {%- assign mb = "1" %}
39
+ {%- else %}
40
+ {%- assign mb = "5" %}
41
+ {%- endif %}
42
+ <div class="display-4 mb-{{ mb }}"><i class="{{ icon }}"></i></div>
43
+ {%- endcapture %}
44
+
45
+ {%- capture html_banner_name -%}
46
+ <div class="display-4 fw-bold mb-1">{{ name }}</div>
47
+ {%- endcapture %}
48
+
49
+ {%- capture html_banner_description -%}
50
+ {%- if actions == nil and resources == nil %}
51
+ {%- assign mb = "1" %}
52
+ {%- else %}
53
+ {%- assign mb = "3" %}
54
+ {%- endif %}
55
+ <div class="lead mb-{{ mb }}">{{ description }}</div>
56
+ {%- endcapture %}
57
+
58
+ {%- capture html_banner_actions -%}
59
+ <div class="d-flex align-items-start">
60
+ {%- for action in actions %}
61
+ <div class="me-1 mb-1">{% include base/link.html class="btn btn-primary text-nowrap" role="button" name=action.name url=action.url %}</div>
62
+ {% endfor %}
63
+ </div>
64
+ {%- endcapture %}
65
+
66
+ {%- capture html_banner_resources -%}
67
+ <div class="d-flex bg-primary text-bg-primary text-center rounded-bottom">
68
+ {%- for resource in resources %}
69
+ <div class="col d-grid">
70
+ {% include base/link.html class="btn btn-primary text-nowrap" role="button" name=resource.name url=resource.url icon=resource.icon %}
71
+ </div>
72
+ {%- endfor %}
73
+ </div>
74
+ {%- endcapture -%}
75
+ <div class="d-flex justify-content-center bg-dark bg-image text-bg-dark px-3 rounded-top{% if resources == nil %} rounded-bottom{% endif %}">
76
+ <div class="col-sm-12 col-lg-8 py-5">
77
+ {%- if image %}{{ html_banner_image }}{% endif %}
78
+ {%- if icon %}{{ html_banner_icon }}{% endif %}
79
+ {%- if name %}{{ html_banner_name }}{% endif %}
80
+ {%- if description %}{{ html_banner_description }}{% endif %}
81
+ {%- if actions.size > 0 %}{{ html_banner_actions }}{% endif %}
82
+ </div>
83
+ </div>
84
+ {%- if resources.size > 0 %}{{ html_banner_resources }}{% endif %}
85
+ {%- endcapture -%}
86
+ {{- html_banner -}}
@@ -1,5 +1,5 @@
1
1
  <nav aria-label="{{ include.arialabel | default: 'breadcrumb' }}">
2
- <ol class="breadcrumb">
2
+ <ol class="breadcrumb mb-0">
3
3
  {%- assign crumbs = page.url | remove:'/index.html' | split: '/' %}
4
4
  <li class="breadcrumb-item"><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ site.baseurl }}/">Home</a></li>
5
5
  {%- for crumb in crumbs offset: 1 %}
@@ -7,14 +7,14 @@
7
7
  {%- assign color = include.color | default: "light" -%}
8
8
  {%- capture legals -%}
9
9
  {%- for item in copyright.legals -%}
10
- {%- assign name = item.text -%}
11
- {%- assign url = item.link -%}
12
- <span class="border-start ms-2 ps-2">{% include base/link.html name=name url=url color=color %}</span>
10
+ {%- include base/link.html
11
+ class="border-start ms-2 ps-2 link-light link-offset-3 link-offset-3-hover link-underline-light link-underline-opacity-25 link-underline-opacity-75-hover"
12
+ url=item.link
13
+ name=item.text
14
+ -%}
13
15
  {%- endfor -%}
14
16
  {%- endcapture -%}
15
17
 
16
18
  <div class="row my-3">
17
- <div class="col">
18
- <div>Copyright &copy; {{ site.time | date: "%Y" }} {{ copyright.author }} {{ legals }}</div>
19
- </div>
19
+ <div class="col">Copyright &copy; {{ site.time | date: "%Y" }} {{ copyright.author }} {{ legals }}</div>
20
20
  </div>
@@ -1,35 +1,12 @@
1
1
  {% assign locales = page.with_locales.size | plus: 1 %}
2
- {% capture modal_title %}
3
- <i class="fa-solid fa-language"></i> Languages <span class="badge text-bg-secondary">{{ locales }}</span>
4
- {% endcapture %}
5
-
6
- {% assign modal_id = include.id | default: 0 %}
7
- {% assign modal_preamble = include.preamble | default: "This page is available in the following languages:"%}
8
- {% assign modal_footer = include.footer | default: "" %}
9
-
10
- <button type="button" class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#languageModal-{{ modal_id }}">
11
- {{ modal_title }}
12
- </button>
13
-
14
- <div class="modal fade" id="languageModal-{{ modal_id }}" tabindex="-1" aria-labelledby="languageModalLabel-{{ modal_id }}">
15
- <div class="modal-dialog">
16
- <div class="modal-content">
17
- <div class="modal-header">
18
- <h1 class="modal-title fs-4" id="languageModalLabel-{{ modal_id }}">{{ modal_title }}</h1>
19
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
20
- </div>
21
- <div class="modal-body">
22
- <p>{{ modal_preamble }}</p>
23
- <a href="{{ site.baseurl }}{{ page.url }}" role="button" class="btn btn-sm btn-primary">{{ site.data.base.languages["en"] }}</a>
24
- {% for locale in page.with_locales %}
25
- <a href="{{ site.baseurl }}/{{ locale }}{{ page.url }}" role="button" class="btn btn-sm btn-primary">{{ site.data.base.languages[locale] }}</a>
26
- {% endfor %}
27
- </div>
28
- {% if modal_footer != "" %}
29
- <div class="modal-footer">
30
- <p class="small">{{ modal_footer }}</p>
31
- </div>
32
- {% endif %}
33
- </div>
34
- </div>
2
+ <div class="dropdown">
3
+ <button class="btn btn-sm btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
4
+ <i class="fa-solid fa-language"></i> Languages
5
+ </button>
6
+ <ul class="dropdown-menu">
7
+ <li><a class="dropdown-item" href="{{ site.baseurl }}{{ page.url }}">{{ site.data.base.languages["en"] }}</a></li>
8
+ {% for locale in page.with_locales %}
9
+ <li><a class="dropdown-item" href="{{ site.baseurl }}/{{ locale }}{{ page.url }}">{{ site.data.base.languages[locale] }}</a></li>
10
+ {% endfor %}
11
+ </ul>
35
12
  </div>
@@ -14,6 +14,7 @@
14
14
  title=news.title
15
15
  content=news.content
16
16
  color=news.color
17
+ icon=news.icon
17
18
  url=news.url
18
19
  -%}
19
20
  {% endfor %}
@@ -40,12 +41,13 @@
40
41
  title=announcement.title
41
42
  content=announcement.content
42
43
  color=announcement.color
44
+ icon=announcement.icon
43
45
  -%}
44
46
  {% endfor %}
45
47
  {% endif -%}
46
48
 
47
49
  {% if page.with_breadcrumbs == true or page.with_locales.size > 0 %}
48
- <div class="row justify-content-center mb-5 small">
50
+ <div class="row align-items-center small mb-3">
49
51
  <div class="col">
50
52
  {% if page.with_breadcrumbs == true %}
51
53
  {% include base/breadcrumbs.html %}
@@ -59,6 +61,10 @@
59
61
  </div>
60
62
  {% endif %}
61
63
 
64
+ {% if page.with_banner != false %}
65
+ {% include base/banner.html %}
66
+ {% endif %}
67
+
62
68
  {% if page.with_title == true -%}
63
69
  <div class="row justify-content-center my-5">
64
70
  <div class="col-sm-12 col-lg-8">
@@ -170,13 +170,6 @@ main {
170
170
  }
171
171
  }
172
172
  // --------------------------------------------------------------------------------
173
- // Tuneup first paragraph top margin when it is the first element inside
174
- // content.
175
- // --------------------------------------------------------------------------------
176
- > p:first-child {
177
- margin-top: 3rem;
178
- }
179
- // --------------------------------------------------------------------------------
180
173
  // Tables
181
174
  // --------------------------------------------------------------------------------
182
175
  div.dataTables_wrapper {
Binary file
Binary file
Binary file
Binary file