- if (path) {
- let pathConfig = await this.getConfig(`assets/${path}.yml`); // the slash (/) is included in the pathname
- config = Object.assign(config, pathConfig);
+ if (this.currentPage !== "default") {
+ let pageConfig = await this.getConfig(
+ `assets/${this.currentPage}.yml`
+ );
+ config = Object.assign(config, pageConfig);