jekyll-theme-centos 2.52.0.beta.93 → 2.52.0.beta.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_data/base/bits_schema.yml +11 -0
- data/_includes/base/bits.html.liquid +49 -58
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1ddd48e40839e62993220986497939549cbacca43c0c8a26020996e3520a3e6
|
|
4
|
+
data.tar.gz: dccc3f654ba6ef736e52803738dd01eb9846024e37c09e16c52ed916ad83a59b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15fe51e10c40b2e264a5008e0a315d7bb79180718dd6632416ae090adeb5fe71131abed39ba5416198eaced8978f9091e8accc731c0cf115b6fadc87dc265f09
|
|
7
|
+
data.tar.gz: 67b10667ff2b8831b4fbe115f2388f496f7a8b4295d5aabdb75f7ec437143c7396afefa9b322850fcacec2eb8529cde40dbd3111acddc9207748dc53b90ab064
|
data/_data/base/bits_schema.yml
CHANGED
|
@@ -148,6 +148,17 @@ properties:
|
|
|
148
148
|
type: string
|
|
149
149
|
default: "flex-column align-items-center text-center mb-3"
|
|
150
150
|
description: Custom Bootstrap classes applied directly to the card element inside the Upstream Bit container.
|
|
151
|
+
col_class:
|
|
152
|
+
type: string
|
|
153
|
+
default: "col-12 col-sm-4"
|
|
154
|
+
description: >-
|
|
155
|
+
Custom Bootstrap grid column class(es) applied to the wrapper around a
|
|
156
|
+
downstream Bit's card, controlling its width and responsiveness within
|
|
157
|
+
the downstream row (e.g., `col-12` to span the full row, `col-sm-6` to
|
|
158
|
+
share the row 50/50 with one other item, or the default `col-12 col-sm-4`
|
|
159
|
+
to keep three items evenly spaced from the small breakpoint up). Only
|
|
160
|
+
relevant when `type` is `downstream` and the parent Upstream Bit uses the
|
|
161
|
+
`card` downstream style — has no effect on `accordion` style.
|
|
151
162
|
color:
|
|
152
163
|
type: string
|
|
153
164
|
default: primary
|
|
@@ -1,51 +1,44 @@
|
|
|
1
1
|
{% comment %}
|
|
2
2
|
================================================================================
|
|
3
3
|
Template: Bits Component (Upstream/Downstream Relationships)
|
|
4
|
-
Purpose: Renders
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- Hierarchical relationships: upstream parent, downstream children
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- Optional sections: preamble, finale, "View All" link
|
|
16
|
-
|
|
17
|
-
-
|
|
4
|
+
Purpose: Renders upstream/downstream relationships — each upstream Bit as a
|
|
5
|
+
preamble/card/finale block, followed by its related downstream Bits in one
|
|
6
|
+
of two switchable presentation styles.
|
|
7
|
+
|
|
8
|
+
Design Logic:
|
|
9
|
+
- Hierarchical relationships: upstream parent, downstream children, linked
|
|
10
|
+
by matching `relationship` to the upstream's `name`
|
|
11
|
+
- Card-based presentation: reuses base/card.html.liquid for the upstream Bit
|
|
12
|
+
- Switchable downstream presentation, picked per upstream Bit via
|
|
13
|
+
`downstream_style`: `card` (default, fixed 3-item preview grid) or
|
|
14
|
+
`accordion` (every related item, optionally capped via `downstream_limit`)
|
|
15
|
+
- Optional sections: preamble, finale, "View All" link (shown once the
|
|
16
|
+
downstream count exceeds the effective style cap)
|
|
17
|
+
- Per-item downstream card width: each downstream Bit's own `col_class`
|
|
18
|
+
(card style only) controls its Bootstrap grid column class, so cards in the
|
|
19
|
+
same row need not be equal width
|
|
18
20
|
|
|
19
21
|
Required Inputs (from data objects):
|
|
20
|
-
- type: 'upstream' or 'downstream'
|
|
21
|
-
- name: Component name
|
|
22
|
-
- relationship: For downstream, name of upstream parent
|
|
22
|
+
- type: 'upstream' or 'downstream'
|
|
23
|
+
- name: Component name
|
|
24
|
+
- relationship: For downstream, name of its upstream parent
|
|
23
25
|
|
|
24
26
|
Optional Inputs (from data objects):
|
|
25
27
|
- description, screenshot, icon, image, actions, color
|
|
26
|
-
- preamble, finale: Text before/after card
|
|
28
|
+
- preamble, finale: Text before/after the upstream card
|
|
27
29
|
- class, card_class, preamble_class, finale_class: Custom styling
|
|
28
|
-
- downstream_style: 'card' (default) or 'accordion'
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
4. site.data.base.bits - Theme defaults
|
|
41
|
-
|
|
42
|
-
Component Layout:
|
|
43
|
-
- Outer loop: upstream bits (type='upstream')
|
|
44
|
-
- Preamble text (if present)
|
|
45
|
-
- Card component for upstream
|
|
46
|
-
- Finale section with optional "View All" link
|
|
47
|
-
- Downstream items: card style (max 3 preview cards) or accordion style
|
|
48
|
-
(all items, or up to downstream_limit), filtered by relationship
|
|
30
|
+
- downstream_style: 'card' (default) or 'accordion'
|
|
31
|
+
- downstream_limit: accordion style only; caps items shown, omit for
|
|
32
|
+
unlimited (all shown, "View All" link never rendered)
|
|
33
|
+
- col_class: card style only; Bootstrap column class per downstream card
|
|
34
|
+
(default: three-across)
|
|
35
|
+
- index_page_name, index_page_url: For the "View All" link
|
|
36
|
+
|
|
37
|
+
Data Source Hierarchy (priority order):
|
|
38
|
+
1. include.data
|
|
39
|
+
2. page.with_bits_data
|
|
40
|
+
3. site.data.bits
|
|
41
|
+
4. site.data.base.bits
|
|
49
42
|
================================================================================
|
|
50
43
|
{% endcomment %}
|
|
51
44
|
|
|
@@ -117,15 +110,14 @@ Component Layout:
|
|
|
117
110
|
{%- assign downstream_bit_total = downstream_bits | size %}
|
|
118
111
|
{%- assign downstream_bit_index_name = upstream_bit_index_page_name | append: " (" | append: downstream_bit_total | append: ")" %}
|
|
119
112
|
|
|
113
|
+
{%- assign downstream_display_limit = upstream_bit_downstream_limit %}
|
|
114
|
+
{%- if upstream_bit_downstream_style != "accordion" %}
|
|
115
|
+
{%- assign downstream_display_limit = card_style_downstream_cap %}
|
|
116
|
+
{%- endif %}
|
|
117
|
+
|
|
120
118
|
{%- assign show_index_link = false %}
|
|
121
|
-
{%- if
|
|
122
|
-
{%-
|
|
123
|
-
{%- assign show_index_link = true %}
|
|
124
|
-
{%- endif %}
|
|
125
|
-
{%- else %}
|
|
126
|
-
{%- if downstream_bit_total > card_style_downstream_cap %}
|
|
127
|
-
{%- assign show_index_link = true %}
|
|
128
|
-
{%- endif %}
|
|
119
|
+
{%- if downstream_display_limit and downstream_bit_total > downstream_display_limit %}
|
|
120
|
+
{%- assign show_index_link = true %}
|
|
129
121
|
{%- endif %}
|
|
130
122
|
|
|
131
123
|
{%- if upstream_bit.finale %}
|
|
@@ -146,10 +138,6 @@ Component Layout:
|
|
|
146
138
|
{%- endif %}
|
|
147
139
|
|
|
148
140
|
{%- comment %} --- Downstream Items --- {% endcomment %}
|
|
149
|
-
{%- assign downstream_display_limit = upstream_bit_downstream_limit %}
|
|
150
|
-
{%- if upstream_bit_downstream_style != "accordion" %}
|
|
151
|
-
{%- assign downstream_display_limit = card_style_downstream_cap %}
|
|
152
|
-
{%- endif %}
|
|
153
141
|
{%- if downstream_display_limit %}
|
|
154
142
|
{%- assign visible_downstream_bits = downstream_bits | slice: 0, downstream_display_limit %}
|
|
155
143
|
{%- else %}
|
|
@@ -201,12 +189,15 @@ Component Layout:
|
|
|
201
189
|
body = downstream_bit_body
|
|
202
190
|
-%}
|
|
203
191
|
{%- else %}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
<div class="card-
|
|
207
|
-
|
|
208
|
-
<
|
|
209
|
-
|
|
192
|
+
{%- assign downstream_bit_col_class = downstream_bit.col_class | default: with_bits_schema.col_class.default %}
|
|
193
|
+
<div class="{{ downstream_bit_col_class }}">
|
|
194
|
+
<div class="card border-{{ upstream_bit_color }}-subtle h-100">
|
|
195
|
+
{{- downstream_bit_media | strip -}}
|
|
196
|
+
<div class="card-body">
|
|
197
|
+
<p class="h5 card-title">{{ downstream_bit.name }}</p>
|
|
198
|
+
<p class="card-text">{{ downstream_bit.description }}</p>
|
|
199
|
+
{{ downstream_bit_action_button }}
|
|
200
|
+
</div>
|
|
210
201
|
</div>
|
|
211
202
|
</div>
|
|
212
203
|
{%- endif %}
|
|
@@ -216,7 +207,7 @@ Component Layout:
|
|
|
216
207
|
{%- if upstream_bit_downstream_style == "accordion" %}
|
|
217
208
|
<div class="accordion w-100 mb-3" id="{{ downstream_accordion_id }}">{{- downstream_items_html -}}</div>
|
|
218
209
|
{%- else %}
|
|
219
|
-
<div class="
|
|
210
|
+
<div class="row w-100 mb-3 g-2">{{- downstream_items_html -}}</div>
|
|
220
211
|
{%- endif %}
|
|
221
212
|
|
|
222
213
|
</div>
|