@jungvonmatt/cssg-plugin-hugo 1.0.2 → 1.0.3

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.3](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.2...v1.0.3) (2021-11-29)
7
+
8
+ **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.0.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.0.1...v1.0.2) (2021-11-29)
7
15
 
8
16
  **Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
package/index.js CHANGED
@@ -196,8 +196,8 @@ export default (args) => {
196
196
  entryMap: collectEntryMap,
197
197
  });
198
198
  return options.translationStrategy === STRATEGY_FILENAME
199
- ? path.join(...(slugs || []), `_index.${locale.code}.md`)
200
- : path.join(...(slugs || []), `_index.md`);
199
+ ? path.join(...(slugs || []).filter((v) => v), `_index.${locale.code}.md`)
200
+ : path.join(...(slugs || []).filter((v) => v), `_index.md`);
201
201
  }
202
202
 
203
203
  if (type === TYPE_CONTENT) {
@@ -209,11 +209,11 @@ export default (args) => {
209
209
 
210
210
  return options.translationStrategy === STRATEGY_FILENAME
211
211
  ? path.join(
212
- ...(slugs || []),
212
+ ...(slugs || []).filter((v) => v),
213
213
  `${collectEntry?.fields?.[options.fieldIdSlug] ?? 'unknown'}.${locale.code}.md`
214
214
  )
215
215
  : path.join(
216
- ...(slugs || []),
216
+ ...(slugs || []).filter((v) => v),
217
217
  `${collectEntry?.fields?.[options.fieldIdSlug] ?? 'unknown'}.md`
218
218
  );
219
219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jungvonmatt/cssg-plugin-hugo",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "typings": "./index.d.ts",
@@ -30,5 +30,5 @@
30
30
  "merge-options": "^3.0.4",
31
31
  "micromatch": "^4.0.4"
32
32
  },
33
- "gitHead": "c0d7b4e36ede445f92bcc059e379e8ac9584f527"
33
+ "gitHead": "995ddeab8ba57b236cc84cdd55a998b03ab9ee46"
34
34
  }