@eeacms/volto-clms-theme 1.0.95 → 1.0.96

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.
package/CHANGELOG.md CHANGED
@@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [1.0.96](https://github.com/eea/volto-clms-theme/compare/1.0.95...1.0.96)
8
+
9
+ - change condition to show blocks: as a default layout is configured all newsitems have at least 4 default blocks, and with this condition we were showing always the blocks although they were empty [`8221063`](https://github.com/eea/volto-clms-theme/commit/82210634f530b86fece6da520e5b8f12cf906058)
10
+
7
11
  #### [1.0.95](https://github.com/eea/volto-clms-theme/compare/1.0.94...1.0.95)
8
12
 
13
+ > 10 June 2022
14
+
15
+ - Develop [`#260`](https://github.com/eea/volto-clms-theme/pull/260)
9
16
  - prettier [`30df928`](https://github.com/eea/volto-clms-theme/commit/30df9281bbd910f108318b66485e7382398b82b4)
10
17
  - add one more check [`c4f2615`](https://github.com/eea/volto-clms-theme/commit/c4f261530c657481586a484a15396cc12a4a6776)
11
18
  - show description only if there is one [`e075810`](https://github.com/eea/volto-clms-theme/commit/e07581007ea07cd82166fd9ae18691ffb09bfe76)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -7,7 +7,7 @@ const CLMSNewsItemView = (props) => {
7
7
  const { content } = props;
8
8
  return (
9
9
  <div className="ccl-container">
10
- {hasBlocksData(content) && content.blocks_layout?.items?.length > 1 ? (
10
+ {hasBlocksData(content) && content.blocks_layout?.items?.length > 4 ? (
11
11
  <RenderBlocks {...props} />
12
12
  ) : (
13
13
  <>