diff --git a/helpers/config-node.js b/helpers/config-node.js index 6f87148..d2ed8b7 100644 --- a/helpers/config-node.js +++ b/helpers/config-node.js @@ -208,7 +208,7 @@ export class PageHead { structuredData = null, domain = getSiteUrl(), - pathname, + pathname = '', } = options this.title = title @@ -234,6 +234,8 @@ export class PageHead { } get routeType () { + if ( this.pathname.length < 2 ) return 'none' + return getRouteType( this.pathname ) }