kcc-gem-theme 2.19.3 → 2.19.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/accordion.html +8 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c72297e4b61e4e687b3f8ed3b5562d56509512030ad02eedafe52609d075e232
4
- data.tar.gz: d65cdcc145d83327a6e94315f7e94c58de725931bb87067de95fae1ae7dc946d
3
+ metadata.gz: 7ad4a5716035f89b4280da084dff39f08333bc2beb32963a86020106401649e6
4
+ data.tar.gz: 550d12728dd0c799cfdeb59231b5a8dbb12c848662af67fd0de70f84f10c4fd2
5
5
  SHA512:
6
- metadata.gz: d00a5ac77c982706320272d54501a4a5d3ee6877c6ee343875463aeccda97e2363bc318742d03b28a81185352b19402988c70fe179bcec356e76742a150471fe
7
- data.tar.gz: beb4deab100deb1500150cf12a9326641e7140597a5123bc5592f194df5493070bde7153f5ad4b503665c6ee8e82579d68950418f6372c81636804e3a01490d0
6
+ metadata.gz: eb8c41762befca8622b1ecb0f606df88ce11e05738f22db95184d812851835050d0e356b87b282bebc54c144a77f26a1855c6e7e461f4f0b4bc116e00fbcc011
7
+ data.tar.gz: 3b9d8e288d55e2678ec10650c10f5ec7011dab9f08569a921ad6f6c8adaa9a0f7108a4129f98f5ede3493f7c232a737f8de2d891eb7684332973786361ca99fd
@@ -4,14 +4,18 @@
4
4
  </div>
5
5
  </div>
6
6
  <div id="accordion" class="accordion pt-2 pb-3 mb-3">
7
- {% assign page_title = page.title %}
8
- {% assign accordion_collection = site.accordions | where: "accordion_page", page_title | sort: "order" %}
9
- {% for item in accordion_collection %}
7
+ {%- assign page_title = page.title -%}
8
+ {%- assign accordion_collection = site.accordions | where: "accordion_page", page_title | sort: "order" -%}
9
+ {%- for item in accordion_collection -%}
10
+ {%- if item.alternate_id -%}
11
+ {%- assign this_accordion_id = item.alternate_id -%}
12
+ {%- else -%}
10
13
  {%- comment -%}
11
14
  In the liquid `assign` below, the second `| remove: '—'` statement is
12
15
  an em-dash character that will look like another hyphen (monospace code editor font.)
13
16
  {%- endcomment -%}
14
- {% assign this_accordion_id = item.card_heading | downcase | remove: '-' | remove: '&mdash;' | remove: '—' | replace: '&', 'and' | replace: ' ', '-' | remove: "'" | replace: "/", "-" | replace: 'é', 'e' | remove: '’' | remove: '0' | remove: '1' | remove: '2' | remove: '3' | remove: '4' | remove: '5' | remove: '6' | remove: '7' | remove: '8' | remove: '9' | remove: '?' | remove: '!' | remove: '#' | remove: '$' | remove: '.' | remove: ',' | remove: '(' | remove: ')' | remove: '®' | remove: '©' %}
17
+ {%- assign this_accordion_id = item.card_heading | downcase | remove: '-' | remove: '&mdash;' | remove: '—' | replace: '&', 'and' | replace: ' ', '-' | remove: "'" | replace: "/", "-" | replace: 'é', 'e' | remove: '’' | remove: '0' | remove: '1' | remove: '2' | remove: '3' | remove: '4' | remove: '5' | remove: '6' | remove: '7' | remove: '8' | remove: '9' | remove: '?' | remove: '!' | remove: '#' | remove: '$' | remove: '.' | remove: ',' | remove: '(' | remove: ')' | remove: '®' | remove: '©' -%}
18
+ {%- endif -%}
15
19
  <div class="card">
16
20
  <div class="card-header px-0" id="card-header-{{ this_accordion_id }}">
17
21
  <h2 class="mb-0 accordion__typography--card-header accordion__typography--hover">
@@ -31,7 +35,6 @@
31
35
  <!-- Editor Link -->
32
36
  <a href="cloudcannon:collections/{{ item.path }}" class="btn btn-success mb-4 editor-button">Edit This Accordion
33
37
  Item</a>
34
-
35
38
  {{ item.content }}
36
39
  </div>
37
40
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kcc-gem-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.3
4
+ version: 2.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - wdzajicek