mod-build 3.6.1--beta.25 → 3.6.2
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 +1 -1
- package/gulp-tasks/templates.js +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 3.6.2
|
|
4
4
|
|
|
5
|
-
- Adding `check-seasonal-variations` to grab seasons json
|
|
5
|
+
- Adding `check-seasonal-variations` to grab seasons json; loop through the siteData for `seasonalVariations: {}`; find any active seasons; merge the json objects and adjust json content accordingly;
|
|
6
6
|
|
|
7
7
|
## 3.5.7
|
|
8
8
|
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -17,9 +17,13 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
17
17
|
// Checking for seasonal variations in the template.js + updating content
|
|
18
18
|
var checkSeasonalVariations = require('./check-seasonal-variations.js');
|
|
19
19
|
const activeSeason = checkSeasonalVariations();
|
|
20
|
-
if (activeSeason !==
|
|
21
|
-
if (
|
|
22
|
-
|
|
20
|
+
if (activeSeason.length !== 0){
|
|
21
|
+
if (siteData.seasonalVariations) {
|
|
22
|
+
activeSeason.forEach(season => {
|
|
23
|
+
if (season in siteData.seasonalVariations) {
|
|
24
|
+
siteData = merge(siteData, siteData.seasonalVariations[season]);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|