jekyll-theme-centos 2.51.1.beta.47 → 2.51.1.beta.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/base/languages.yml +186 -0
- data/_data/base/references.yml +12 -0
- data/_includes/base/announcements.html +10 -1
- data/_includes/base/breadcrumbs.html +8 -8
- data/_includes/base/breakingnews.html +5 -5
- data/_includes/base/copyright.html +11 -8
- data/_includes/base/languages.html +35 -0
- data/_includes/base/link.html +1 -0
- data/_includes/base/script.html +1 -5
- data/_includes/base/social.html +16 -0
- data/_includes/base/toc-accordion.html +4 -1
- data/_includes/base/topics.html +13 -0
- data/_layouts/base/default.html +24 -21
- data/_sass/base/_customization.scss +46 -36
- data/_sass/base/_variables.scss +8 -3
- data/assets/img/base/{screenshot-base-default-layout.svg → default-layout.svg} +456 -456
- data/assets/img/base/default-layout.webp +0 -0
- data/assets/img/base/site-navigation-bar.svg +297 -0
- data/assets/img/base/site-navigation-bar.webp +0 -0
- metadata +15 -8
- data/_includes/base/pages.html +0 -14
- data/assets/img/base/screenshot-base-default-layout.png +0 -0
- /data/assets/img/base/{the-site-navigation-flow.svg → site-navigation-flow.svg} +0 -0
- /data/assets/img/base/{the-site-navigation-flow.webp → site-navigation-flow.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: 6540593ed3dd8c216ad81416fe5db6ec328acbeafd20221e1b20b9a9c08d35f9
|
4
|
+
data.tar.gz: 4c740a0b2888d232f8c7a77e511c30cec8d14c85b7d30666982d9369d625eee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edc115f6d6a8f28539eb2aa9b7f3df341f3563b22674a44ecb6895d9de46709110b1db757558cd958df4f96a77b068163af641dec2d5cabe2566d0ff5aadc7a9
|
7
|
+
data.tar.gz: 791eb1c896ba0ae062606e9cae3cd33954813e71517f728ad0b63d8222126a042b9e637c3a4c5aed0f73ac886266d32c0ea6943b02c6ce2bcfe3db88f43a3434
|
@@ -0,0 +1,186 @@
|
|
1
|
+
---
|
2
|
+
#
|
3
|
+
# Language codes (https://loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt)
|
4
|
+
#
|
5
|
+
ab: "Abkhaz"
|
6
|
+
aa: "Afar"
|
7
|
+
af: "Afrikaans"
|
8
|
+
ak: "Akan"
|
9
|
+
sq: "Albanian"
|
10
|
+
am: "Amharic"
|
11
|
+
ar: "Arabic"
|
12
|
+
an: "Aragonese"
|
13
|
+
hy: "Armenian"
|
14
|
+
as: "Assamese"
|
15
|
+
av: "Avaric"
|
16
|
+
ae: "Avestan"
|
17
|
+
ay: "Aymara"
|
18
|
+
az: "Azerbaijani"
|
19
|
+
bm: "Bambara"
|
20
|
+
ba: "Bashkir"
|
21
|
+
eu: "Basque"
|
22
|
+
be: "Belarusian"
|
23
|
+
bn: "Bengali"
|
24
|
+
bh: "Bihari"
|
25
|
+
bi: "Bislama"
|
26
|
+
bs: "Bosnian"
|
27
|
+
br: "Breton"
|
28
|
+
bg: "Bulgarian"
|
29
|
+
my: "Burmese"
|
30
|
+
ca: "Catalan; Valencian"
|
31
|
+
ch: "Chamorro"
|
32
|
+
ce: "Chechen"
|
33
|
+
ny: "Chichewa; Chewa; Nyanja"
|
34
|
+
zh: "Chinese"
|
35
|
+
cv: "Chuvash"
|
36
|
+
kw: "Cornish"
|
37
|
+
co: "Corsican"
|
38
|
+
cr: "Cree"
|
39
|
+
hr: "Croatian"
|
40
|
+
cs: "Czech"
|
41
|
+
da: "Danish"
|
42
|
+
dv: "Divehi; Dhivehi; Maldivian;"
|
43
|
+
nl: "Dutch"
|
44
|
+
en: "English"
|
45
|
+
eo: "Esperanto"
|
46
|
+
et: "Estonian"
|
47
|
+
ee: "Ewe"
|
48
|
+
fo: "Faroese"
|
49
|
+
fj: "Fijian"
|
50
|
+
fi: "Finnish"
|
51
|
+
fr: "French"
|
52
|
+
ff: "Fula; Fulah; Pulaar; Pular"
|
53
|
+
gl: "Galician"
|
54
|
+
ka: "Georgian"
|
55
|
+
de: "German"
|
56
|
+
el: "Greek"
|
57
|
+
gn: "Guaraní"
|
58
|
+
gu: "Gujarati"
|
59
|
+
ht: "Haitian; Haitian Creole"
|
60
|
+
ha: "Hausa"
|
61
|
+
he: "Hebrew (modern)"
|
62
|
+
hz: "Herero"
|
63
|
+
hi: "Hindi"
|
64
|
+
ho: "Hiri Motu"
|
65
|
+
hu: "Hungarian"
|
66
|
+
ia: "Interlingua"
|
67
|
+
id: "Indonesian"
|
68
|
+
ie: "Interlingue"
|
69
|
+
ga: "Irish"
|
70
|
+
ig: "Igbo"
|
71
|
+
ik: "Inupiaq"
|
72
|
+
io: "Ido"
|
73
|
+
is: "Icelandic"
|
74
|
+
it: "Italian"
|
75
|
+
iu: "Inuktitut"
|
76
|
+
ja: "Japanese"
|
77
|
+
jv: "Javanese"
|
78
|
+
kl: "Kalaallisut"
|
79
|
+
kn: "Kannada"
|
80
|
+
kr: "Kanuri"
|
81
|
+
ks: "Kashmiri"
|
82
|
+
kk: "Kazakh"
|
83
|
+
km: "Khmer"
|
84
|
+
ki: "Kikuyu"
|
85
|
+
rw: "Kinyarwanda"
|
86
|
+
ky: "Kirghiz"
|
87
|
+
kv: "Komi"
|
88
|
+
kg: "Kongo"
|
89
|
+
ko: "Korean"
|
90
|
+
ku: "Kurdish"
|
91
|
+
kj: "Kwanyama"
|
92
|
+
la: "Latin"
|
93
|
+
lb: "Luxembourgish"
|
94
|
+
lg: "Luganda"
|
95
|
+
li: "Limburgish"
|
96
|
+
ln: "Lingala"
|
97
|
+
lo: "Lao"
|
98
|
+
lt: "Lithuanian"
|
99
|
+
lu: "Luba-Katanga"
|
100
|
+
lv: "Latvian"
|
101
|
+
gv: "Manx"
|
102
|
+
mk: "Macedonian"
|
103
|
+
mg: "Malagasy"
|
104
|
+
ms: "Malay"
|
105
|
+
ml: "Malayalam"
|
106
|
+
mt: "Maltese"
|
107
|
+
mi: "Māori"
|
108
|
+
mr: "Marathi (Marāṭhī)"
|
109
|
+
mh: "Marshallese"
|
110
|
+
mn: "Mongolian"
|
111
|
+
na: "Nauru"
|
112
|
+
nv: "Navajo"
|
113
|
+
nb: "Norwegian Bokmål"
|
114
|
+
nd: "North Ndebele"
|
115
|
+
ne: "Nepali"
|
116
|
+
ng: "Ndonga"
|
117
|
+
nn: "Norwegian Nynorsk"
|
118
|
+
no: "Norwegian"
|
119
|
+
ii: "Nuosu"
|
120
|
+
nr: "South Ndebele"
|
121
|
+
oc: "Occitan"
|
122
|
+
oj: "Ojibwe"
|
123
|
+
cu: "Old Church Slavonic"
|
124
|
+
om: "Oromo"
|
125
|
+
or: "Oriya"
|
126
|
+
os: "Ossetian"
|
127
|
+
pa: "Panjabi"
|
128
|
+
pi: "Pāli"
|
129
|
+
fa: "Persian"
|
130
|
+
pl: "Polish"
|
131
|
+
ps: "Pashto"
|
132
|
+
pt: "Portuguese"
|
133
|
+
qu: "Quechua"
|
134
|
+
rm: "Romansh"
|
135
|
+
rn: "Kirundi"
|
136
|
+
ro: "Romanian"
|
137
|
+
ru: "Russian"
|
138
|
+
sa: "Sanskrit"
|
139
|
+
sc: "Sardinian"
|
140
|
+
sd: "Sindhi"
|
141
|
+
se: "Northern Sami"
|
142
|
+
sm: "Samoan"
|
143
|
+
sg: "Sango"
|
144
|
+
sr: "Serbian"
|
145
|
+
gd: "Gaelic"
|
146
|
+
sn: "Shona"
|
147
|
+
si: "Sinhala"
|
148
|
+
sk: "Slovak"
|
149
|
+
sl: "Slovene"
|
150
|
+
so: "Somali"
|
151
|
+
st: "Southern Sotho"
|
152
|
+
es: "Spanish"
|
153
|
+
su: "Sundanese"
|
154
|
+
sw: "Swahili"
|
155
|
+
ss: "Swati"
|
156
|
+
sv: "Swedish"
|
157
|
+
ta: "Tamil"
|
158
|
+
te: "Telugu"
|
159
|
+
tg: "Tajik"
|
160
|
+
th: "Thai"
|
161
|
+
ti: "Tigrinya"
|
162
|
+
bo: "Tibetan"
|
163
|
+
tk: "Turkmen"
|
164
|
+
tl: "Tagalog"
|
165
|
+
tn: "Tswana"
|
166
|
+
to: "Tonga"
|
167
|
+
tr: "Turkish"
|
168
|
+
ts: "Tsonga"
|
169
|
+
tt: "Tatar"
|
170
|
+
tw: "Twi"
|
171
|
+
ty: "Tahitian"
|
172
|
+
ug: "Uighur"
|
173
|
+
uk: "Ukrainian"
|
174
|
+
ur: "Urdu"
|
175
|
+
uz: "Uzbek"
|
176
|
+
ve: "Venda"
|
177
|
+
vi: "Vietnamese"
|
178
|
+
vo: "Volapük"
|
179
|
+
wa: "Walloon"
|
180
|
+
cy: "Welsh"
|
181
|
+
wo: "Wolof"
|
182
|
+
fy: "Western Frisian"
|
183
|
+
xh: "Xhosa"
|
184
|
+
yi: "Yiddish"
|
185
|
+
yo: "Yoruba"
|
186
|
+
za: "Zhuang"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
- title: Jekyll documentation
|
3
|
+
url: https://jekyllrb.com/docs/
|
4
|
+
|
5
|
+
- title: Liquid template language
|
6
|
+
url: https://shopify.github.io/liquid/
|
7
|
+
|
8
|
+
- title: The DITA style guide best practices for authors
|
9
|
+
url: https://www.oxygenxml.com/dita/styleguide/
|
10
|
+
|
11
|
+
- title: Modular documentation reference guide
|
12
|
+
url: https://redhat-documentation.github.io/modular-docs/
|
@@ -1,4 +1,13 @@
|
|
1
1
|
<div class="alert alert-{{ include.color | default: 'primary' }} alert-dismissible fade show shadow" role="alert">
|
2
|
-
<
|
2
|
+
<div class="container d-flex justify-content-between align-items-center">
|
3
|
+
<div class="me-3">
|
4
|
+
<div class="h5 mb-0"><i class="{{ include.icon | default: 'fa-solid fa-bullhorn' }}"></i></div>
|
5
|
+
</div>
|
6
|
+
<div class="flex-fill">
|
7
|
+
{%- if include.content != "" %}
|
8
|
+
{{ include.content }}
|
9
|
+
{%- endif %}
|
10
|
+
</div>
|
11
|
+
</div>
|
3
12
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
4
13
|
</div>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<nav aria-label="{{ include.arialabel | default: 'breadcrumb' }}">
|
2
2
|
<ol class="breadcrumb">
|
3
|
-
{
|
4
|
-
<li class="breadcrumb-item"><a href="{{ site.baseurl }}/">Home</a></li>
|
5
|
-
{
|
6
|
-
{
|
3
|
+
{%- assign crumbs = page.url | remove:'/index.html' | split: '/' %}
|
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
|
+
{%- for crumb in crumbs offset: 1 %}
|
6
|
+
{%- if forloop.last %}
|
7
7
|
<li class="breadcrumb-item active">{{ page.title }}</li>
|
8
|
-
{
|
9
|
-
<li class="breadcrumb-item"><a href="{{ site.baseurl }}{% 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>
|
10
|
-
{
|
11
|
-
{
|
8
|
+
{%- else %}
|
9
|
+
<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 }}{% 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>
|
10
|
+
{%- endif %}
|
11
|
+
{%- endfor %}
|
12
12
|
</ol>
|
13
13
|
</nav>
|
@@ -1,17 +1,17 @@
|
|
1
|
-
<div class="alert alert-{{ include.color | default: 'primary') }} rounded-0 m-0 border-
|
1
|
+
<div class="alert alert-{{ include.color | default: 'primary') }} rounded-0 m-0 border-start-0 border-end-0 shadow" 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>
|
5
5
|
</div>
|
6
6
|
<div class="flex-fill">
|
7
|
-
{
|
7
|
+
{%- if include.content != "" %}
|
8
8
|
{{ include.content }}
|
9
|
-
{
|
9
|
+
{%- endif %}
|
10
10
|
</div>
|
11
|
-
{
|
11
|
+
{%- if include.url != "" %}
|
12
12
|
<div class="">
|
13
13
|
<a class="btn btn-sm btn-{{ include.color | default: 'primary') }} text-nowrap" href="{{ include.url }}" role="button">Know more <i class="fa-solid fa-arrow-right"></i></a>
|
14
14
|
</div>
|
15
|
-
{
|
15
|
+
{%- endif %}
|
16
16
|
</div>
|
17
17
|
</div>
|
@@ -3,15 +3,18 @@
|
|
3
3
|
{% else %}
|
4
4
|
{% assign copyright = site.data.base.copyright %}
|
5
5
|
{% endif %}
|
6
|
+
|
7
|
+
{%- assign color = include.color | default: "light" -%}
|
8
|
+
{%- capture legals -%}
|
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>
|
13
|
+
{%- endfor -%}
|
14
|
+
{%- endcapture -%}
|
15
|
+
|
6
16
|
<div class="row my-3">
|
7
17
|
<div class="col">
|
8
|
-
|
9
|
-
<span>{{ site.time | date: "%Y" }}</span>
|
10
|
-
<span>{{ copyright.author }}</span>
|
11
|
-
{% for item in copyright.legals -%}
|
12
|
-
<span class="border-start ms-2 ps-2">
|
13
|
-
<a class="link-light link-offset-3 link-underline-opacity-25 link-underline-opacity-100-hover link-underline-light" href="{{ item.link }}">{{ item.text }}</a>
|
14
|
-
</span>
|
15
|
-
{% endfor %}
|
18
|
+
<div>Copyright © {{ site.time | date: "%Y" }} {{ copyright.author }} {{ legals }}</div>
|
16
19
|
</div>
|
17
20
|
</div>
|
@@ -0,0 +1,35 @@
|
|
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>
|
35
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a class="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" href="{{ include.url }}">{{ include.name }}</a>
|
data/_includes/base/script.html
CHANGED
@@ -4,11 +4,7 @@
|
|
4
4
|
<script src="https://unpkg.com/highlightjs-copy@1.0.3/dist/highlightjs-copy.min.js"></script>
|
5
5
|
<script>
|
6
6
|
document.querySelectorAll('.content code').forEach(el=>el.classList.add('hljs'));
|
7
|
-
hljs.addPlugin(
|
8
|
-
new CopyButtonPlugin({
|
9
|
-
callback: (text, el) => console.log("Copied!", text),
|
10
|
-
})
|
11
|
-
);
|
7
|
+
hljs.addPlugin(new CopyButtonPlugin());
|
12
8
|
hljs.highlightAll();
|
13
9
|
</script>
|
14
10
|
{% endif -%}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{% if site.data[site.component_data_dirname]["social"] %}
|
2
|
+
{% assign social_networks = site.data[site.component_data_dirname]["social"] %}
|
3
|
+
{% else %}
|
4
|
+
{% assign social_networks = site.data.base.social %}
|
5
|
+
{% endif %}
|
6
|
+
<div class="row">
|
7
|
+
<div class="mt-3 col-sm-12 col-lg-8">
|
8
|
+
<div class="lead">{{ site.description }}</div>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="my-3 col-sm-12 col-lg-4 d-flex justify-content-sm-start justify-content-lg-end">
|
12
|
+
{% for item in social_networks -%}
|
13
|
+
<a class="btn border-0 btn-outline-primary fs-4" href="{{ item.link }}" role="button" aria-label="{{ item.name }}" data-bs-placement="bottom" data-bs-title="{{ item.name }}"><i class="{{ item.icon }}"></i></a>
|
14
|
+
{% endfor %}
|
15
|
+
</div>
|
16
|
+
</div>
|
@@ -6,8 +6,11 @@
|
|
6
6
|
<div id="flush-collapseOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#pageTocAccordion">
|
7
7
|
<div class="accordion-body small">
|
8
8
|
{% include base/toc.html
|
9
|
+
id="page-toc"
|
9
10
|
html=content
|
10
|
-
|
11
|
+
class="list-group"
|
12
|
+
item_class="list-unstyled"
|
13
|
+
anchor_class="link-primary list-group-item list-group-item-light list-group-item-action border-top-0 border-end-0 border-bottom-0 border-2 border-primary-subtle rounded-0 my-1"
|
11
14
|
%}
|
12
15
|
</div>
|
13
16
|
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="row my-4">
|
2
|
+
{%- for topic in include.topics %}
|
3
|
+
{%- if topic.title != page.title %}
|
4
|
+
<div class="col-sm-6">
|
5
|
+
{%- if site.url contains "http://" or site.url contains "https://" %}
|
6
|
+
<p><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ topic.url }}">{{ topic.title }}</a></p>
|
7
|
+
{%- else %}
|
8
|
+
<p><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ site.url }}{{ site.baseurl }}{{ topic.url }}">{{ topic.title }}</a></p>
|
9
|
+
{%- endif %}
|
10
|
+
</div>
|
11
|
+
{%- endif %}
|
12
|
+
{%- endfor %}
|
13
|
+
</div>
|
data/_layouts/base/default.html
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
</div>
|
33
33
|
{% endif %}
|
34
34
|
|
35
|
-
<main class="container bg-body py-
|
35
|
+
<main class="container bg-body py-3">
|
36
36
|
|
37
37
|
{% if page.with_announcements and page.with_announcements.size > 0 -%}
|
38
38
|
{% for announcement in page.with_announcements %}
|
@@ -44,47 +44,50 @@
|
|
44
44
|
{% endfor %}
|
45
45
|
{% endif -%}
|
46
46
|
|
47
|
-
{% if page.with_breadcrumbs == true %}
|
48
|
-
<div class="row justify-content-center">
|
49
|
-
<div class="col
|
50
|
-
|
47
|
+
{% if page.with_breadcrumbs == true or page.with_locales.size > 0 %}
|
48
|
+
<div class="row justify-content-center mb-5 small">
|
49
|
+
<div class="col">
|
50
|
+
{% if page.with_breadcrumbs == true %}
|
51
|
+
{% include base/breadcrumbs.html %}
|
52
|
+
{% endif %}
|
53
|
+
</div>
|
54
|
+
<div class="col-auto">
|
55
|
+
{% if page.with_locales.size > 0 %}
|
56
|
+
{% include base/languages.html %}
|
57
|
+
{% endif %}
|
51
58
|
</div>
|
52
59
|
</div>
|
53
60
|
{% endif %}
|
54
61
|
|
55
|
-
{% if page.
|
56
|
-
<div class="row justify-content-center">
|
62
|
+
{% if page.with_title == true -%}
|
63
|
+
<div class="row justify-content-center my-5">
|
57
64
|
<div class="col-sm-12 col-lg-8">
|
58
|
-
<div class="
|
59
|
-
|
60
|
-
</div>
|
65
|
+
<div class="h1">{{ page.title }}</div>
|
66
|
+
{% if page.with_preamble == true -%}
|
67
|
+
<div class="lead">{{ page.title_lead }}</div>
|
68
|
+
{% endif -%}
|
61
69
|
</div>
|
62
70
|
</div>
|
63
71
|
{% endif %}
|
64
72
|
|
65
|
-
{% if page.
|
66
|
-
<div class="row justify-content-center">
|
73
|
+
{% if page.with_artwork != false %}
|
74
|
+
<div class="row justify-content-center mb-4">
|
67
75
|
<div class="col-sm-12 col-lg-8">
|
68
|
-
<
|
69
|
-
<div class="h1">{{ page.title }}</div>
|
70
|
-
{% if page.with_preamble == true -%}
|
71
|
-
<div class="lead">{{ page.title_lead }}</div>
|
72
|
-
{% endif -%}
|
73
|
-
</div>
|
76
|
+
<img src="{{ site.baseurl }}/assets/img/{{ page.with_artwork }}" class="img-fluid rounded bg-dark" alt="{{ page.title }}" />
|
74
77
|
</div>
|
75
78
|
</div>
|
76
79
|
{% endif %}
|
77
80
|
|
78
81
|
{% if page.with_toc == true %}
|
79
|
-
<div class="row justify-content-center">
|
82
|
+
<div class="row justify-content-center mb-4">
|
80
83
|
<div class="col-sm-12 col-lg-8">
|
81
|
-
|
84
|
+
{% include base/toc-accordion.html %}
|
82
85
|
</div>
|
83
86
|
</div>
|
84
87
|
{% endif %}
|
85
88
|
|
86
89
|
{% if page.with_content == true %}
|
87
|
-
<div class="row justify-content-center">
|
90
|
+
<div class="row justify-content-center mb-4">
|
88
91
|
<div class="col-sm-12 col-lg-8">
|
89
92
|
<div class="content">
|
90
93
|
{{ content }}
|
@@ -88,6 +88,42 @@ nav {
|
|
88
88
|
}
|
89
89
|
}
|
90
90
|
}
|
91
|
+
// --------------------------------------------------------------------------------
|
92
|
+
// Alerts (p), announcements (div), and breakingnews (div)
|
93
|
+
// --------------------------------------------------------------------------------
|
94
|
+
p {
|
95
|
+
&.alert {
|
96
|
+
padding-left: $spacer * 3;
|
97
|
+
background-repeat: no-repeat;
|
98
|
+
background-position-y: $spacer * 1.2;
|
99
|
+
background-position-x: $spacer;
|
100
|
+
border-left-width: 0.5rem;
|
101
|
+
}
|
102
|
+
&.alert-primary {
|
103
|
+
background-image: $alert-primary-icon;
|
104
|
+
}
|
105
|
+
&.alert-secondary {
|
106
|
+
background-image: $alert-secondary-icon;
|
107
|
+
}
|
108
|
+
&.alert-danger {
|
109
|
+
background-image: $alert-danger-icon;
|
110
|
+
}
|
111
|
+
&.alert-warning {
|
112
|
+
background-image: $alert-warning-icon;
|
113
|
+
}
|
114
|
+
&.alert-info {
|
115
|
+
background-image: $alert-info-icon;
|
116
|
+
}
|
117
|
+
&.alert-light {
|
118
|
+
background-image: $alert-light-icon;
|
119
|
+
}
|
120
|
+
&.alert-dark {
|
121
|
+
background-image: $alert-dark-icon;
|
122
|
+
}
|
123
|
+
&.alert-success {
|
124
|
+
background-image: $alert-success-icon;
|
125
|
+
}
|
126
|
+
}
|
91
127
|
|
92
128
|
main {
|
93
129
|
// --------------------------------------------------------------------------------
|
@@ -107,6 +143,11 @@ main {
|
|
107
143
|
scroll-margin-bottom: 100px;
|
108
144
|
margin-top: 3rem;
|
109
145
|
}
|
146
|
+
.content > h2 {
|
147
|
+
border-bottom: 5px solid $primary;
|
148
|
+
padding-bottom: $spacer * 0.5;
|
149
|
+
margin-bottom: $spacer * 0.75;
|
150
|
+
}
|
110
151
|
.content > figure {
|
111
152
|
scroll-margin-top: 80px;
|
112
153
|
scroll-margin-bottom: 100px;
|
@@ -119,45 +160,14 @@ main {
|
|
119
160
|
border-radius: var(--bs-border-radius);
|
120
161
|
}
|
121
162
|
pre {
|
122
|
-
|
163
|
+
.hljs {
|
123
164
|
max-height: 50vh;
|
124
165
|
overflow: auto;
|
125
166
|
}
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
// --------------------------------------------------------------------------------
|
131
|
-
// Alerts
|
132
|
-
// --------------------------------------------------------------------------------
|
133
|
-
p {
|
134
|
-
&.alert {
|
135
|
-
padding-left: 2.5rem;
|
136
|
-
background-repeat: no-repeat;
|
137
|
-
background-position-y: 1.25rem;
|
138
|
-
background-position-x: 0.8rem;
|
139
|
-
border-width: 0 0 0 0.5rem;
|
140
|
-
}
|
141
|
-
&.alert-primary {
|
142
|
-
background-image: $alert-primary-icon;
|
143
|
-
}
|
144
|
-
&.alert-secondary {
|
145
|
-
background-image: $alert-secondary-icon;
|
146
|
-
}
|
147
|
-
&.alert-danger {
|
148
|
-
background-image: $alert-danger-icon;
|
149
|
-
}
|
150
|
-
&.alert-warning {
|
151
|
-
background-image: $alert-warning-icon;
|
152
|
-
}
|
153
|
-
&.alert-info {
|
154
|
-
background-image: $alert-info-icon;
|
155
|
-
}
|
156
|
-
&.alert-light {
|
157
|
-
background-image: $alert-light-icon;
|
158
|
-
}
|
159
|
-
&.alert-success {
|
160
|
-
background-image: $alert-success-icon;
|
167
|
+
.hljs-copy-button {
|
168
|
+
top: 0.5rem;
|
169
|
+
right: 0.5rem;
|
170
|
+
--hljs-theme-background: var(--bs-primary);
|
161
171
|
}
|
162
172
|
}
|
163
173
|
// --------------------------------------------------------------------------------
|
data/_sass/base/_variables.scss
CHANGED
@@ -13,9 +13,9 @@ $centos-green: #9ccd2a;
|
|
13
13
|
$primary: $centos-purple;
|
14
14
|
$secondary: $centos-orange;
|
15
15
|
$dark: #200735;
|
16
|
-
$success:
|
17
|
-
$info:
|
18
|
-
$warning:
|
16
|
+
$success: $centos-green;
|
17
|
+
$info: $centos-blue;
|
18
|
+
$warning: $centos-orange;
|
19
19
|
$danger: #dc3545;
|
20
20
|
$light: #f8f9fa;
|
21
21
|
|
@@ -25,6 +25,7 @@ $success-text-emphasis: shade-color($success, 60%);
|
|
25
25
|
$info-text-emphasis: shade-color($info, 60%);
|
26
26
|
$warning-text-emphasis: shade-color($warning, 60%);
|
27
27
|
$light-text-emphasis: shade-color($light, 60%);
|
28
|
+
$dark-text-emphasis: shade-color($dark, 60%);
|
28
29
|
$danger-text-emphasis: shade-color($danger, 60%);
|
29
30
|
$dropdown-dark-bg: $dark;
|
30
31
|
|
@@ -34,6 +35,9 @@ $dropdown-dark-bg: $dark;
|
|
34
35
|
$font-family-sans-serif: "Montserrat", sans-serif;
|
35
36
|
$font-family-monospace: "Source Code Pro", monospace;
|
36
37
|
$headings-font-weight: 700;
|
38
|
+
$font-size-base: 1rem; // Assumes the browser default, typically `16px`
|
39
|
+
$h1-font-size: $font-size-base * 2.75;
|
40
|
+
|
37
41
|
|
38
42
|
// --------------------------------------------------------------------------------
|
39
43
|
// Breadcrumb
|
@@ -50,6 +54,7 @@ $alert-info-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg
|
|
50
54
|
$alert-danger-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($danger-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>');
|
51
55
|
$alert-success-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($success-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"/></svg>');
|
52
56
|
$alert-light-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($light-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg>');
|
57
|
+
$alert-dark-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($dark-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg>');
|
53
58
|
|
54
59
|
// --------------------------------------------------------------------------------
|
55
60
|
// Negative margins
|