@jungvonmatt/cssg-plugin-hugo 1.5.1 → 1.7.0
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 +27 -0
- package/index.js +4 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.7.0](https://github.com/jungvonmatt/contentful-ssg/compare/v1.6.1...v1.7.0) (2022-04-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.6.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.6.0...v1.6.1) (2022-04-05)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @jungvonmatt/cssg-plugin-hugo
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.5.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.5.1...v1.5.2) (2022-03-23)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **menu:** use submenu as default value for fieldIdMenu ([e7a8b55](https://github.com/jungvonmatt/contentful-ssg/commit/e7a8b55a61cb3d5284561b318d0bf5b2a92a835e))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [1.5.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.5.0...v1.5.1) (2022-02-23)
|
|
7
34
|
|
|
8
35
|
|
package/index.js
CHANGED
|
@@ -22,10 +22,11 @@ const defaultOptions = {
|
|
|
22
22
|
fieldIdHome: 'home',
|
|
23
23
|
fieldIdSlug: 'slug',
|
|
24
24
|
fieldIdParent: 'parent_page',
|
|
25
|
-
fieldIdMenu: '
|
|
25
|
+
fieldIdMenu: 'submenu',
|
|
26
26
|
fieldIdMenuEntries: 'entries',
|
|
27
27
|
fieldIdMenuHide: 'hide_in_menu',
|
|
28
28
|
fieldIdMenuPos: 'menu_pos',
|
|
29
|
+
fieldIdMenuId: 'name',
|
|
29
30
|
menuRootTypes: ['page', 'folder', 'x-folder'],
|
|
30
31
|
typeConfig: {
|
|
31
32
|
[TYPE_CONTENT]: ['page'],
|
|
@@ -431,10 +432,10 @@ export default (args) => {
|
|
|
431
432
|
// Automatically build hugo menus
|
|
432
433
|
// See https://gohugo.io/content-management/menus/
|
|
433
434
|
if (options.typeIdMenu && contentTypeId === options.typeIdMenu) {
|
|
434
|
-
const
|
|
435
|
+
const menuId = entry.fields[options.fieldIdMenuId];
|
|
435
436
|
const menu = await buildMenu(transformContext, runtimeContext, options.menuDepth);
|
|
436
437
|
|
|
437
|
-
runtimeContext.menus[hugoLocaleCode(locale)][
|
|
438
|
+
runtimeContext.menus[hugoLocaleCode(locale)][menuId] = menu;
|
|
438
439
|
}
|
|
439
440
|
|
|
440
441
|
if (type === TYPE_CONTENT) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jungvonmatt/cssg-plugin-hugo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/jungvonmatt/contentful-ssg#readme",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jungvonmatt/contentful-ssg": "^1.
|
|
29
|
+
"@jungvonmatt/contentful-ssg": "^1.7.0",
|
|
30
30
|
"fs-extra": "^10.0.0",
|
|
31
31
|
"micromatch": "^4.0.4"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "441c4188533375574d0bd461b3e043ba0c7d2655"
|
|
34
34
|
}
|