jekyll-theme-centos 2.51.1.beta.53 → 2.51.1.beta.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/base/announcements.html +1 -1
- data/_includes/base/banner.html +86 -0
- data/_includes/base/breadcrumbs.html +1 -1
- data/_includes/base/copyright.html +6 -6
- data/_includes/base/languages.html +10 -33
- data/_includes/base/link.html +61 -16
- data/_layouts/base/default.html +7 -1
- data/_sass/base/_customization.scss +0 -7
- data/assets/img/base/page.svg +1688 -0
- data/assets/img/base/page.webp +0 -0
- data/assets/img/base/page_with_banner.webp +0 -0
- metadata +7 -5
- data/assets/img/base/default-layout.svg +0 -945
- data/assets/img/base/default-layout.webp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ab16f4c1db9e235787598b25e960e919e40c9b48d98fe096e434bd4e0f4eda
|
4
|
+
data.tar.gz: 1d2d47e7221bd5ca855d2bf1cbade08785c2507b475e4653506f625af4c2e91d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7390853ec019ac3d8972e2282d6b82db1f447f7c947cb639de811b5a6e14e72ae8f1a2114ecff1d5aae27ee0894f330119af00e9bc1ac1fbae4ceab5bb8d6cf
|
7
|
+
data.tar.gz: 3243fa337e9a14ddb29b10dcbcf17bd86f2b0bb799730dd0083fb89f683436b76048eed8d0c93eaaabc43b26a8237228fda73edcc65b6b7c099c86bb39d9dca6
|
@@ -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
|
-
{%-
|
11
|
-
|
12
|
-
|
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 © {{ site.time | date: "%Y" }} {{ copyright.author }} {{ legals }}</div>
|
19
|
-
</div>
|
19
|
+
<div class="col">Copyright © {{ 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
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
{%
|
9
|
-
|
10
|
-
|
11
|
-
|
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>
|
data/_includes/base/link.html
CHANGED
@@ -1,17 +1,62 @@
|
|
1
|
-
{%- capture
|
2
|
-
{%-
|
3
|
-
|
4
|
-
{
|
5
|
-
|
6
|
-
|
1
|
+
{%- capture html_link %}
|
2
|
+
{%- comment %}
|
3
|
+
Usage:
|
4
|
+
{% include base/link.html name="Text link" url="#" %}
|
5
|
+
|
6
|
+
Optional Parameters:
|
7
|
+
* name (string) : ""
|
8
|
+
* url (string) : ""
|
9
|
+
* class (string) : ""
|
10
|
+
* role (string) : ""
|
11
|
+
* color (string) : "primary"
|
12
|
+
* icon (string) : ""
|
13
|
+
* icon_position (string) : "start"
|
14
|
+
|
15
|
+
Output:
|
16
|
+
Text link with consistent presentation.
|
17
|
+
{%- endcomment %}
|
18
|
+
|
19
|
+
{%- assign name = include.name | default: nil %}
|
20
|
+
{%- assign url = include.url | default: nil %}
|
21
|
+
{%- assign color = include.color | default: "primary" %}
|
22
|
+
{%- assign role = include.role | default: nil %}
|
23
|
+
{%- assign icon = include.icon | default: nil %}
|
24
|
+
{%- assign icon_position = include.icon_position | default: "start" %}
|
25
|
+
{%- assign class = include.class | default: nil %}
|
26
|
+
|
27
|
+
{%- capture html_link_elements -%}
|
28
|
+
{%- if url == nil %}
|
29
|
+
href="{{ page.url }}#{{ name | strip | replace: " ", "-" | strip_html | downcase }}"
|
30
|
+
{%- else %}
|
31
|
+
{%- if url contains "https://" or url contains "http://" %}
|
32
|
+
href="{{ url }}"
|
33
|
+
{%- else %}
|
34
|
+
href="{{ site.url }}{{ site.baseurl }}{{ url }}"
|
35
|
+
{%- endif -%}
|
36
|
+
{%- endif -%}
|
37
|
+
|
38
|
+
{%- if class %}
|
39
|
+
class="{{ class }}"
|
40
|
+
{%- else %}
|
41
|
+
class="link-{{ color }} link-offset-3 link-offset-3-hover link-underline-{{ color }} link-underline-opacity-25 link-underline-opacity-75-hover"
|
42
|
+
{%- endif -%}
|
43
|
+
|
44
|
+
{%- if role %}
|
45
|
+
role="{{ role }}"
|
46
|
+
{%- endif -%}
|
47
|
+
{%- endcapture -%}
|
48
|
+
|
49
|
+
{%- capture html_link_name %}
|
50
|
+
{%- if icon != nil %}
|
51
|
+
{%- if icon_position == "end" -%}
|
52
|
+
{{ name }}<i class="{{ icon }} ms-2"></i>
|
53
|
+
{%- else -%}
|
54
|
+
<i class="{{ icon }} me-2"></i>{{ name }}
|
55
|
+
{%- endif -%}
|
56
|
+
{%- else -%}
|
57
|
+
{{ name }}
|
58
|
+
{%- endif -%}
|
7
59
|
{%- endcapture -%}
|
8
|
-
{
|
9
|
-
{%-
|
10
|
-
{{-
|
11
|
-
{%- else -%}
|
12
|
-
link-{{ include.color | default: "primary" }} link-offset-3 link-offset-3-hover link-underline-{{ include.color | default: "primary" }} link-underline-opacity-25 link-underline-opacity-75-hover
|
13
|
-
{%- endif -%}
|
14
|
-
{%- endcapture -%}
|
15
|
-
{%- if include.url -%}
|
16
|
-
<a href="{{ href }}" class="{{ class }}"{% if include.role %} role="{{ include.role }}"{% endif %}>{% if include.icon %}<i class="{{ include.icon }}"></i> {% endif %}{{ include.name }}</a>
|
17
|
-
{%- endif -%}
|
60
|
+
<a {{ html_link_elements | strip_newlines | strip }}>{{ html_link_name }}</a>
|
61
|
+
{%- endcapture %}
|
62
|
+
{{- html_link -}}
|
data/_layouts/base/default.html
CHANGED
@@ -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
|
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 {
|