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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 836151018cf8fe713204e9e09cfc1fc62aa72394ed2a38d44b2acde91fccb3bc
4
- data.tar.gz: 7f5d355430ec907001fc2aeac3a05000884f9f2fa4ea965ec4cf0253103f0550
3
+ metadata.gz: d1ddd48e40839e62993220986497939549cbacca43c0c8a26020996e3520a3e6
4
+ data.tar.gz: dccc3f654ba6ef736e52803738dd01eb9846024e37c09e16c52ed916ad83a59b
5
5
  SHA512:
6
- metadata.gz: dd4ad0f0437c111e41e46162330f39b24d065c81e1af6a132acbabc98c6018b8cfd00207dc7df0cfec557a70ac2118028ffac3f88ec85a2a11cc2d2d85aa2223
7
- data.tar.gz: aa1d9d40a3f7ccb1cc5de0c4f3b0e1157ef81dcce527cbadfdc4c67b9445a95d052243e22322c468ce9bb7650e47deb090dca3ab6f370df8439c1d5b51d61895
6
+ metadata.gz: 15fe51e10c40b2e264a5008e0a315d7bb79180718dd6632416ae090adeb5fe71131abed39ba5416198eaced8978f9091e8accc731c0cf115b6fadc87dc265f09
7
+ data.tar.gz: 67b10667ff2b8831b4fbe115f2388f496f7a8b4295d5aabdb75f7ec437143c7396afefa9b322850fcacec2eb8529cde40dbd3111acddc9207748dc53b90ab064
@@ -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 hierarchical relationships between upstream and downstream
5
- components. Displays upstream with preamble, card, finale, and its related
6
- downstream items in one of two switchable presentation styles.
7
-
8
- Strategic Design Logic:
9
- - Hierarchical relationships: upstream parent, downstream children
10
- - Card-based presentation: reuses card component for consistency
11
- - Switchable downstream presentation: `card` (fixed 3-item preview grid,
12
- the default) or `accordion` (every related downstream item, optionally
13
- capped via `downstream_limit`), picked per upstream Bit — never both at
14
- once for the same upstream Bit
15
- - Optional sections: preamble, finale, "View All" link
16
- - Relationship linking: downstream filtered by upstream name
17
- - Customizable styling: per-element class overrides
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' (required)
21
- - name: Component name (required)
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' — which presentation
29
- renders this upstream Bit's downstream items
30
- - downstream_limit: accordion style only; max downstream items shown. Omit
31
- for unlimited (all shown, "View All" link never rendered)
32
- - index_page_name, index_page_url: For "View All" link (card style shows it
33
- if >3 items; accordion style shows it only when downstream_limit is set
34
- and exceeded)
35
-
36
- Data Source Hierarchy (in priority order):
37
- 1. include.data - Explicitly passed array
38
- 2. page.with_bits_data - Page front matter
39
- 3. site.data.bits - Site data
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 upstream_bit_downstream_style == "accordion" %}
122
- {%- if upstream_bit_downstream_limit and downstream_bit_total > upstream_bit_downstream_limit %}
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
- <div class="card border-{{ upstream_bit_color }}-subtle m-1">
205
- {{- downstream_bit_media | strip -}}
206
- <div class="card-body">
207
- <p class="h5 card-title">{{ downstream_bit.name }}</p>
208
- <p class="card-text">{{ downstream_bit.description }}</p>
209
- {{ downstream_bit_action_button }}
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="d-flex flex-row flex-wrap flex-lg-nowrap justify-content-between w-100 mb-3">{{- downstream_items_html -}}</div>
210
+ <div class="row w-100 mb-3 g-2">{{- downstream_items_html -}}</div>
220
211
  {%- endif %}
221
212
 
222
213
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-centos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.52.0.beta.93
4
+ version: 2.52.0.beta.94
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alain Reguera Delgado