generator-chisel 2.2.0 → 2.2.1

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 (68) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -11
  3. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/manrope-700.woff2 +0 -0
  4. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/manrope-regular.woff2 +0 -0
  5. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-300.woff2 +0 -0
  6. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-700.woff2 +0 -0
  7. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-regular.woff2 +0 -0
  8. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/BlocksHelpers.php +1 -1
  9. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Traits/PageBlocks.php +56 -3
  10. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselImage.php +4 -0
  11. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselPost.php +3 -2
  12. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProduct.php +3 -2
  13. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProductCategory.php +3 -2
  14. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Components.php +25 -11
  15. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/CustomPostTypes.php +1 -1
  16. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Site.php +1 -0
  17. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Twig.php +2 -2
  18. package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/style.scss +2 -2
  19. package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/block.json +1 -1
  20. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_buttons.scss +31 -66
  21. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_colors.scss +5 -0
  22. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_icon.scss +1 -0
  23. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_index.scss +1 -0
  24. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_link.scss +1 -0
  25. package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/admin/acf.js +1 -2
  26. package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/utils.js +15 -5
  27. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-button.scss +13 -27
  28. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-latest-posts.scss +1 -1
  29. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-media-text.scss +1 -1
  30. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-query.scss +1 -1
  31. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core.scss +4 -0
  32. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_badge.scss +3 -3
  33. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_buttons.scss +14 -28
  34. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_footer.scss +6 -1
  35. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_header.scss +1 -1
  36. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav.scss +5 -5
  37. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_pagination.scss +1 -1
  38. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post-card.scss +1 -1
  39. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post.scss +3 -1
  40. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_posts-items.scss +1 -1
  41. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_sidebar.scss +1 -1
  42. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_slider.scss +3 -3
  43. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_form.scss +3 -3
  44. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_shared.scss +4 -0
  45. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/login.scss +2 -2
  46. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_wrapper.scss +5 -1
  47. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_general.scss +2 -2
  48. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_notices.scss +1 -1
  49. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product.scss +2 -2
  50. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_block-edit-selector.scss +2 -2
  51. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-spacer.scss +1 -1
  52. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_render-appender.scss +2 -2
  53. package/lib/commands/create/creators/app/chisel-starter-theme/style.chisel-tpl.css +1 -1
  54. package/lib/commands/create/creators/app/chisel-starter-theme/theme.json +150 -37
  55. package/lib/commands/create/creators/app/chisel-starter-theme/views/components/footer.twig +8 -0
  56. package/lib/commands/create/creators/app/chisel-starter-theme/views/index.twig +3 -3
  57. package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-blog.twig +1 -1
  58. package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-woocommerce.twig +1 -1
  59. package/lib/commands/create/creators/app/chisel-starter-theme/views/single.twig +6 -4
  60. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/archive-product.twig +2 -2
  61. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/linked-products.twig +1 -1
  62. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/single-product.twig +3 -3
  63. package/lib/commands/create/creators/app/chisel-starter-theme/webpack.config.js +11 -0
  64. package/lib/commands/create/creators/app/chisel-starter-theme/woocommerce.php +1 -1
  65. package/lib/commands/create/packages-versions.js +1 -1
  66. package/package.json +2 -2
  67. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-700.woff2 +0 -0
  68. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-regular.woff2 +0 -0
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "name": "Foreground",
15
15
  "slug": "foreground",
16
- "color": "#000000"
16
+ "color": "#050a18"
17
17
  },
18
18
  {
19
19
  "name": "Background",
@@ -23,12 +23,72 @@
23
23
  {
24
24
  "name": "Primary",
25
25
  "slug": "primary",
26
- "color": "#2a1468"
26
+ "color": "#dd2424"
27
+ },
28
+ {
29
+ "name": "Primary 100",
30
+ "slug": "primary-100",
31
+ "color": "#ffecec"
32
+ },
33
+ {
34
+ "name": "Primary 200",
35
+ "slug": "primary-200",
36
+ "color": "#f5a5a5"
37
+ },
38
+ {
39
+ "name": "Primary 300",
40
+ "slug": "primary-300",
41
+ "color": "#e85f5f"
42
+ },
43
+ {
44
+ "name": "Primary 600",
45
+ "slug": "primary-600",
46
+ "color": "#9c1616"
47
+ },
48
+ {
49
+ "name": "Primary 800",
50
+ "slug": "primary-800",
51
+ "color": "#641010"
52
+ },
53
+ {
54
+ "name": "Primary 900",
55
+ "slug": "primary-900",
56
+ "color": "#2c0707"
27
57
  },
28
58
  {
29
59
  "name": "Secondary",
30
60
  "slug": "secondary",
31
- "color": "#ff6d54"
61
+ "color": "#22dbdb"
62
+ },
63
+ {
64
+ "name": "Secondary 100",
65
+ "slug": "secondary-100",
66
+ "color": "#f0fefe"
67
+ },
68
+ {
69
+ "name": "Secondary 200",
70
+ "slug": "secondary-200",
71
+ "color": "#bff7f7"
72
+ },
73
+ {
74
+ "name": "Secondary 300",
75
+ "slug": "secondary-300",
76
+ "color": "#79Ee6e6"
77
+ },
78
+ {
79
+ "name": "Secondary 600",
80
+ "slug": "secondary-600",
81
+ "color": "#189999"
82
+ },
83
+ {
84
+ "name": "Secondary 800",
85
+ "slug": "secondary-800",
86
+ "color": "#106565"
87
+ },
88
+ {
89
+ "name": "Secondary 900",
90
+ "slug": "secondary-900",
91
+ "color": "#0a2e2e"
32
92
  },
33
93
  {
34
94
  "name": "Black",
@@ -41,19 +101,39 @@
41
101
  "color": "#ffffff"
42
102
  },
43
103
  {
44
- "name": "Grey",
45
- "slug": "grey",
104
+ "name": "Grey 900",
105
+ "slug": "grey-900",
46
106
  "color": "#343a40"
47
107
  },
48
108
  {
49
- "name": "Medium grey",
50
- "slug": "medium-grey",
51
- "color": "#cccccc"
109
+ "name": "Grey 800",
110
+ "slug": "grey-800",
111
+ "color": "#444444"
112
+ },
113
+ {
114
+ "name": "Grey 600",
115
+ "slug": "grey-600",
116
+ "color": "#6E6E6E"
52
117
  },
53
118
  {
54
- "name": "Light grey",
55
- "slug": "light-grey",
56
- "color": "#f0f1f3"
119
+ "name": "Grey 400",
120
+ "slug": "grey-400",
121
+ "color": "#999999"
122
+ },
123
+ {
124
+ "name": "Grey 300",
125
+ "slug": "grey-300",
126
+ "color": "#c2c2c2"
127
+ },
128
+ {
129
+ "name": "Grey 200",
130
+ "slug": "grey-200",
131
+ "color": "#e5e5e5"
132
+ },
133
+ {
134
+ "name": "Grey 100",
135
+ "slug": "grey-100",
136
+ "color": "#f8f8f8"
57
137
  },
58
138
  {
59
139
  "name": "Success",
@@ -78,7 +158,7 @@
78
158
  ],
79
159
  "duotone": [
80
160
  {
81
- "colors": ["#2a1468", "#ff6d54"],
161
+ "colors": ["#dd2424", "#22dbdb"],
82
162
  "slug": "primary-secondary",
83
163
  "name": "Primary & Secondary"
84
164
  }
@@ -87,7 +167,12 @@
87
167
  {
88
168
  "slug": "primary-secondary",
89
169
  "name": "Primary & Secondary",
90
- "gradient": "linear-gradient(135deg, #2a1468 0%, #ff6d54 100%)"
170
+ "gradient": "linear-gradient(135deg, #dd2424 0%, #22dbdb 100%)"
171
+ },
172
+ {
173
+ "slug": "secondary-primary",
174
+ "name": "Secondary & Primary",
175
+ "gradient": "linear-gradient(135deg, #22dbdb 0%, #dd2424 100%)"
91
176
  }
92
177
  ]
93
178
  },
@@ -105,6 +190,11 @@
105
190
  },
106
191
  "defaultFontSizes": false,
107
192
  "fontSizes": [
193
+ {
194
+ "slug": "tiny",
195
+ "size": "0.75rem",
196
+ "name": "tiny"
197
+ },
108
198
  {
109
199
  "slug": "small",
110
200
  "size": "0.875rem",
@@ -126,20 +216,20 @@
126
216
  },
127
217
  {
128
218
  "slug": "large",
129
- "size": "1.5rem",
219
+ "size": "1.25rem",
130
220
  "name": "Large",
131
221
  "fluid": {
132
222
  "min": "1.125rem",
133
- "max": "1.5rem"
223
+ "max": "1.25rem"
134
224
  }
135
225
  },
136
226
  {
137
227
  "slug": "extra-large",
138
- "size": "1.75rem",
228
+ "size": "1.5rem",
139
229
  "name": "Extra Large",
140
230
  "fluid": {
141
231
  "min": "1.25rem",
142
- "max": "1.75rem"
232
+ "max": "1.5rem"
143
233
  }
144
234
  },
145
235
  {
@@ -153,44 +243,59 @@
153
243
  },
154
244
  {
155
245
  "slug": "big",
156
- "size": "2.25rem",
246
+ "size": "2.5rem",
157
247
  "name": "Big",
158
248
  "fluid": {
159
- "min": "1.75rem",
160
- "max": "2.25rem"
249
+ "min": "1.5rem",
250
+ "max": "2.5rem"
161
251
  }
162
252
  },
163
253
  {
164
254
  "slug": "huge",
165
- "size": "3rem",
255
+ "size": "3.5rem",
166
256
  "name": "Huge",
167
257
  "fluid": {
168
- "min": "2.25rem",
169
- "max": "3rem"
258
+ "min": "2.5rem",
259
+ "max": "3.5rem"
170
260
  }
171
261
  }
172
262
  ],
173
263
  "fontFamilies": [
174
264
  {
175
- "fontFamily": "Quicksand,sans-serif",
265
+ "fontFamily": "Roboto,sans-serif",
176
266
  "slug": "body",
177
- "name": "Quicksand",
267
+ "name": "Roboto",
178
268
  "fontFace": [
179
269
  {
180
- "fontFamily": "Quicksand",
181
- "fontWeight": "400",
270
+ "fontFamily": "Roboto",
271
+ "fontWeight": "300",
182
272
  "fontStyle": "normal",
183
273
  "fontStretch": "normal",
184
274
  "fontDisplay": "swap",
185
- "src": ["file:./assets/fonts/quicksand-regular.woff2"]
275
+ "src": ["file:./assets/fonts/roboto-300.woff2"]
186
276
  },
187
277
  {
188
- "fontFamily": "Quicksand",
278
+ "fontFamily": "Roboto",
279
+ "fontWeight": "700",
280
+ "fontStyle": "normal",
281
+ "fontStretch": "normal",
282
+ "fontDisplay": "swap",
283
+ "src": ["file:./assets/fonts/roboto-700.woff2"]
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "fontFamily": "Manrope,sans-serif",
289
+ "slug": "headings",
290
+ "name": "Manrope",
291
+ "fontFace": [
292
+ {
293
+ "fontFamily": "Manrope",
189
294
  "fontWeight": "700",
190
295
  "fontStyle": "normal",
191
296
  "fontStretch": "normal",
192
297
  "fontDisplay": "swap",
193
- "src": ["file:./assets/fonts/quicksand-700.woff2"]
298
+ "src": ["file:./assets/fonts/manrope-700.woff2"]
194
299
  }
195
300
  ]
196
301
  }
@@ -259,6 +364,11 @@
259
364
  "size": "2rem",
260
365
  "slug": "90",
261
366
  "name": "9"
367
+ },
368
+ {
369
+ "size": "3rem",
370
+ "slug": "100",
371
+ "name": "10"
262
372
  }
263
373
  ]
264
374
  },
@@ -271,7 +381,8 @@
271
381
  "medium": "var(--wp--preset--spacing--60)",
272
382
  "large": "var(--wp--preset--spacing--70)",
273
383
  "xlarge": "var(--wp--preset--spacing--80)",
274
- "big": "var(--wp--preset--spacing--90)"
384
+ "big": "var(--wp--preset--spacing--90)",
385
+ "huge": "var(--wp--preset--spacing--100)"
275
386
  },
276
387
  "padding": {
277
388
  "tiny": "var(--wp--preset--spacing--20)",
@@ -281,7 +392,8 @@
281
392
  "medium": "var(--wp--preset--spacing--60)",
282
393
  "large": "var(--wp--preset--spacing--70)",
283
394
  "xlarge": "var(--wp--preset--spacing--80)",
284
- "big": "var(--wp--preset--spacing--90)"
395
+ "big": "var(--wp--preset--spacing--90)",
396
+ "huge": "var(--wp--preset--spacing--100)"
285
397
  },
286
398
  "gap": {
287
399
  "tiny": "var(--wp--preset--spacing--20)",
@@ -291,7 +403,8 @@
291
403
  "medium": "var(--wp--preset--spacing--60)",
292
404
  "large": "var(--wp--preset--spacing--70)",
293
405
  "xlarge": "var(--wp--preset--spacing--80)",
294
- "big": "var(--wp--preset--spacing--90)"
406
+ "big": "var(--wp--preset--spacing--90)",
407
+ "huge": "var(--wp--preset--spacing--100)"
295
408
  },
296
409
  "border-radius": {
297
410
  "tiny": "0.25rem",
@@ -324,8 +437,8 @@
324
437
  "line-height": {
325
438
  "small": 1.15,
326
439
  "medium": 1.25,
327
- "normal": 1.35,
328
- "large": 1.5
440
+ "normal": 1.5,
441
+ "large": 1.75
329
442
  },
330
443
  "transition": {
331
444
  "slow": "all ease-in-out 0.5s",
@@ -361,7 +474,7 @@
361
474
  },
362
475
  ":hover": {
363
476
  "color": {
364
- "text": "var(--wp--preset--color--secondary)"
477
+ "text": "var(--wp--preset--color--foreground)"
365
478
  },
366
479
  "typography": {
367
480
  "textDecoration": "underline"
@@ -370,7 +483,7 @@
370
483
  },
371
484
  "heading": {
372
485
  "typography": {
373
- "fontFamily": "var(--wp--preset--font-family--body)",
486
+ "fontFamily": "var(--wp--preset--font-family--headings)",
374
487
  "fontWeight": "700",
375
488
  "lineHeight": "var(--wp--custom--line-height--normal)"
376
489
  },
@@ -6,4 +6,12 @@
6
6
  </div>
7
7
  {% endfor %}
8
8
  </div>
9
+
10
+ {% if copyright is not empty %}
11
+ <div class="c-footer__copyright">
12
+ <div class="o-wrapper__inner">
13
+ {{ copyright.content }}
14
+ </div>
15
+ </div>
16
+ {% endif %}
9
17
  </footer>
@@ -13,8 +13,8 @@ In order to covert back to a grid, add the following classes to the c-posts-item
13
13
  {% endblock %}
14
14
 
15
15
  <div class="o-layout">
16
- <div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }}">
17
- <div class="c-posts-items {{ bem('o-grid', 'cols-1', 'cols-2-small', (sidebar ? 'cols-2' : 'cols-3') ~ '-medium') }} js-load-more-container">
16
+ <div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }}">
17
+ <div class="c-posts-items {{ bem('o-grid', 'cols-1', 'cols-2-small', (sidebar.content ? 'cols-2' : 'cols-3') ~ '-medium') }} js-load-more-container">
18
18
  {% if posts is not empty %}
19
19
  {% for post in posts %}
20
20
  {% include ['components/' ~ post.post_type ~ '-item.twig', 'components/post-item.twig'] with {post: post} only %}
@@ -27,7 +27,7 @@ In order to covert back to a grid, add the following classes to the c-posts-item
27
27
  {% include 'components/pagination.twig' with {type: 'load-more'} %}
28
28
  </div>
29
29
 
30
- {% if sidebar %}
30
+ {% if sidebar.content %}
31
31
  {% include 'sidebar-blog.twig' %}
32
32
  {% endif %}
33
33
  </div>
@@ -1,5 +1,5 @@
1
1
  <aside class="c-sidebar {{ bem('o-layout__item', '4-large') }}">
2
2
  <div class="c-sidebar__inner">
3
- {{ sidebar }}
3
+ {{ sidebar.content }}
4
4
  </div>
5
5
  </aside>
@@ -1,5 +1,5 @@
1
1
  <aside class="{{ bem('c-sidebar', 'left') }} {{ bem('o-layout__item', '4-large') }}">
2
2
  <div class="c-sidebar__inner">
3
- {{ sidebar }}
3
+ {{ sidebar.content }}
4
4
  </div>
5
5
  </aside>
@@ -4,10 +4,12 @@
4
4
  <article id="post-{{ post.ID }}" class="c-post {{ post_classes(post.class) }}">
5
5
  <section class="o-wrapper__inner c-post__inner {{ wrapper_class }}">
6
6
 
7
- <div class="o-layout c-content{% if sidebar %} has-sidebar{% endif %}">
8
- <div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }} c-content__inner">
7
+ <div class="o-layout c-content{% if sidebar.content %} has-sidebar{% endif %}">
8
+ <div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }} c-content__inner">
9
9
 
10
- {% include 'components/the-title.twig' %}
10
+ {% block the_title %}
11
+ {% include 'components/the-title.twig' %}
12
+ {% endblock %}
11
13
 
12
14
  {% block inner_content %}
13
15
 
@@ -48,7 +50,7 @@
48
50
  {% endblock %}
49
51
  </div>
50
52
 
51
- {% if sidebar %}
53
+ {% if sidebar.content %}
52
54
  {% include 'sidebar-blog.twig' %}
53
55
  {% endif %}
54
56
  </div>
@@ -32,7 +32,7 @@
32
32
  {% do action('woocommerce_before_shop_loop') %}
33
33
 
34
34
  <div class="o-layout">
35
- <div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }}">
35
+ <div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }}">
36
36
  <div class="c-posts-items c-shop-items {{ loop_columns_class }} js-load-more-container">
37
37
  {% if items is not empty %}
38
38
  {% for item in items %}
@@ -70,7 +70,7 @@
70
70
  {% endif %}
71
71
  </div>
72
72
 
73
- {% if sidebar %}
73
+ {% if sidebar.content %}
74
74
  {% include 'sidebar-woocommerce.twig' %}
75
75
  {% endif %}
76
76
  </div>
@@ -5,7 +5,7 @@
5
5
  </div>
6
6
  {% endif %}
7
7
 
8
- <div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }}">
8
+ <div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }}">
9
9
  <div class="c-product-linked__items {{ grid_classnames }}">
10
10
  {% for post in linked_products %}
11
11
  {% include "woocommerce/content-product.twig" with {post: post} %}
@@ -7,8 +7,8 @@
7
7
  <article id="post-{{ post.ID }}" itemscope itemtype="https://schema.org/Product" class="{{ post_classes(post.class) }}">
8
8
  <section class="o-wrapper__inner {{ wrapper_class }} {{ bem('c-post', post.type|default('page')) }}">
9
9
 
10
- <div class="o-layout c-content{% if sidebar %} has-sidebar{% endif %} product">
11
- <div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }} c-content__inner">
10
+ <div class="o-layout c-content{% if sidebar.content %} has-sidebar{% endif %} product">
11
+ <div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }} c-content__inner">
12
12
 
13
13
  <div class="o-layout c-product__inner">
14
14
  <div class="c-product__gallery {{ bem('o-layout__item', '6-large') }}">
@@ -60,7 +60,7 @@
60
60
  </div>
61
61
  </div>
62
62
 
63
- {% if sidebar %}
63
+ {% if sidebar.content %}
64
64
  {# Register product sidebar in Woocommerce.php if you want to use it #}
65
65
  {% include 'sidebar-woocommerce-product.twig' %}
66
66
  {% endif %}
@@ -3,4 +3,15 @@ const { adjustWebpackConfig } = require('chisel-scripts');
3
3
 
4
4
  const updatedConfig = adjustWebpackConfig(defaultConfig, __dirname);
5
5
 
6
+ updatedConfig.devServer = {
7
+ ...updatedConfig.devServer,
8
+ client: {
9
+ overlay: {
10
+ errors: true,
11
+ warnings: false,
12
+ runtimeErrors: false,
13
+ },
14
+ },
15
+ };
16
+
6
17
  module.exports = updatedConfig;
@@ -48,7 +48,7 @@ if ( is_singular( 'product' ) ) {
48
48
  $items = array_map( 'Timber::get_term', $categories );
49
49
  }
50
50
 
51
- $has_sidebar = ! empty( $context['sidebar'] );
51
+ $has_sidebar = isset( $context['sidebar']['content'] ) && ! empty( $context['sidebar']['content'] );
52
52
  $loop_columns = wc_get_loop_prop( 'columns' );
53
53
  $loop_rows = wc_get_default_product_rows_per_page();
54
54
 
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
2
  'chisel-scripts': '2.0.0-2.0.0-alpha.8.1',
3
3
  'chisel-shared-utils': '2.0.0-alpha.1',
4
- 'generator-chisel': '2.2.0',
4
+ 'generator-chisel': '2.2.1',
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-chisel",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "A generator for scaffolding front-end and WordPress projects",
5
5
  "bin": {
6
6
  "chisel": "bin/chisel.js"
@@ -37,5 +37,5 @@
37
37
  "tinyqueue": "^2.0.3",
38
38
  "update-notifier": "^4.1.0"
39
39
  },
40
- "gitHead": "a6ea9900a1267c1c80c36a12355890c70205cade"
40
+ "gitHead": "c13cecf654e0d17ffb2f2d25b8bc5e6628f7eaa3"
41
41
  }