umberto 4.1.0 → 4.1.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 CHANGED
@@ -1,6 +1,20 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [4.1.2](https://github.com/cksource/umberto/compare/v4.1.1...v4.1.2) (2023-11-13)
5
+
6
+ ### Bug fixes
7
+
8
+ * Fixed invalid metadata elements generation in case of `permalinkDisableDomains` not being defined in `umberto.json`. ([commit](https://github.com/cksource/umberto/commit/2130f52361c4536ac44f33a15a58d906d63ec599))
9
+
10
+
11
+ ## [4.1.1](https://github.com/cksource/umberto/compare/v4.1.0...v4.1.1) (2023-11-10)
12
+
13
+ ### Bug fixes
14
+
15
+ * Umberto will no longer throw an error if the configuration file does not include the `permalinkDisableDomains` property. ([commit](https://github.com/cksource/umberto/commit/1435ac3c169c55683773e155f19e2c5fd7ebdccb))
16
+
17
+
4
18
  ## [4.1.0](https://github.com/cksource/umberto/compare/v4.0.1...v4.1.0) (2023-11-10)
5
19
 
6
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umberto",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "CKSource Documentation builder",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -36,7 +36,10 @@ hexo.extend.filter.register( 'before_post_render', page => {
36
36
  page.groupId = category ? category.groupId : null;
37
37
  page.groupSlug = category ? category.groupSlug : null;
38
38
  page.shortName = upath.basename( page.source ).replace( upath.extname( page.source ), '' );
39
- page.permalinkDisableDomains = projectGlobals.config.permalinkDisableDomains.join( ',' );
39
+
40
+ if ( projectGlobals.config.permalinkDisableDomains ) {
41
+ page.permalinkDisableDomains = projectGlobals.config.permalinkDisableDomains.join( ',' );
42
+ }
40
43
 
41
44
  if ( hexo.projectGlobals.common.isSingleProject && projectGlobals.config.canonicalUrlBeginning ) {
42
45
  page.canonicalUrlBeginning = projectGlobals.config.canonicalUrlBeginning;
@@ -37,7 +37,8 @@ block navtree
37
37
  != navTree
38
38
 
39
39
  block projectVersion
40
- meta( name= 'permalink-disable-domains' content=page.permalinkDisableDomains )
40
+ if page.permalinkDisableDomains
41
+ meta( name= 'permalink-disable-domains' content=page.permalinkDisableDomains )
41
42
 
42
43
  if projectLocals
43
44
  meta( name= 'project-version' content= projectLocals.projectVersion )
@@ -19,7 +19,8 @@ block append content
19
19
  include _partial/report-issue-widget
20
20
 
21
21
  block projectVersion
22
- meta( name= 'permalink-disable-domains' content=page.permalinkDisableDomains )
22
+ if page.permalinkDisableDomains
23
+ meta( name= 'permalink-disable-domains' content=page.permalinkDisableDomains )
23
24
 
24
25
  if projectLocals
25
26
  meta( name= 'project-version' content= projectLocals.projectVersion )
@@ -21,7 +21,8 @@ block navtree
21
21
  include _partial/nav-tree
22
22
 
23
23
  block projectVersion
24
- meta( name= 'permalink-disable-domains' content=page.permalinkDisableDomains )
24
+ if page.permalinkDisableDomains
25
+ meta( name= 'permalink-disable-domains' content=page.permalinkDisableDomains )
25
26
 
26
27
  if projectLocals
27
28
  meta( name= 'project-version' content= projectLocals.projectVersion )
@@ -21,7 +21,8 @@ block navtree
21
21
  != projectLocals.sdkNavTree
22
22
 
23
23
  block projectVersion
24
- meta( name= 'permalink-disable-domains' content=page.permalinkDisableDomains )
24
+ if page.permalinkDisableDomains
25
+ meta( name= 'permalink-disable-domains' content=page.permalinkDisableDomains )
25
26
 
26
27
  if projectLocals
27
28
  meta( name= 'project-version' content= projectLocals.projectVersion )