Skip to content

Commit

Permalink
Pref. 在权威链接索引方面提供cleanURL
Browse files Browse the repository at this point in the history
  • Loading branch information
RavelloH committed Feb 24, 2024
1 parent ae2417a commit 4875159
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
? `<script>${fs.readFileSync(
this.convertFilePath(fileList.htmlFiles[i], metaData.pageJsPath),
Expand Down

0 comments on commit 4875159

Please sign in to comment.