katalyst-content 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6514b8584c595435b0faafa8c2deb0a8c55f68b50c2ae1cfa1711a2ea04c9e19
4
- data.tar.gz: a18b11993855fc869c8e066738d04676c351cddb8d3cf1b783ce7a5a902d3d78
3
+ metadata.gz: c608b37a60d58ed60f34a143905ae5c84164059c69da0e169de5ae779c894637
4
+ data.tar.gz: 13245a706e67570c67804e0c8eb2adccc2ae11beb3c41446c8a603a216a8d7a2
5
5
  SHA512:
6
- metadata.gz: 527092db7219dc854ee1ae0fbdfeff26ac30408b435db466be8af2f605b076fadcebea8cc1612c5366af859dedc1c53edb5bd9ddb3ff67afb4620a27ca62e235
7
- data.tar.gz: 0a144f07560924951e4e3ff453fe74583a3a6b610d98440f716286ac7a894617c523ef6be0b0d4eaeb45f70d2875f3c132137c88340feb1b196204b8ad394117
6
+ metadata.gz: a500f1bcac344837b71d99cc0487e81fe67c5c93aa262a7f1186f5b6c3098bab36a11468882542e26bd3c57e2a7e07fb9513dd7b30710bae85f7456e257f42fc
7
+ data.tar.gz: e18353c797418dd4577b0216680fdb5a0c91acd0087de24303396c3c385b97010f34a3db35f4c882976a78609bb217a4ca92a3fd5fda4253a15b380ba7edadc5
@@ -1,14 +1,16 @@
1
1
  <%= content_item_tag aside do %>
2
2
  <%= tag.h3 aside.heading, class: aside.heading_style_class if aside.show_heading? %>
3
3
 
4
- <% items = aside.children.select(&:visible?) %>
5
- <% last = items.pop %>
6
- <div role="aside-container">
7
- <div>
8
- <%= render_content_items items %>
4
+ <% if aside.children.any? %>
5
+ <% items = aside.children.select(&:visible?) %>
6
+ <% last = items.pop %>
7
+ <div role="aside-container">
8
+ <div>
9
+ <%= render_content_items items %>
10
+ </div>
11
+ <aside>
12
+ <%= render_content_items [last] %>
13
+ </aside>
9
14
  </div>
10
- <aside>
11
- <%= render_content_items [last] %>
12
- </aside>
13
- </div>
15
+ <% end %>
14
16
  <% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-content
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-20 00:00:00.000000000 Z
11
+ date: 2024-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations