diff --git a/rbuild.js b/rbuild.js index 2d19105..c497349 100644 --- a/rbuild.js +++ b/rbuild.js @@ -207,9 +207,10 @@ const RBuild = { config.keywords = metaData.keywords || ''; config.description = metaData.description || ''; config.pagetype = metaData.pagetype || ''; - config.url = + config.url = ( config.siteUrl + - this.getPathAfter(fileList.htmlFiles[i], this.config.originDirectory); + this.getPathAfter(fileList.htmlFiles[i], this.config.originDirectory) + ).replace('index.html', ''); config.pageJs = metaData.pageJsPath ? `