mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
fix
This commit is contained in:
@@ -51,8 +51,8 @@ class DocsPlugin {
|
||||
bar.start(this.docs.length, 0, { prefix: 'rendering images', suffix: '-' });
|
||||
for (const doc of this.docs) {
|
||||
console.log("doc", doc);
|
||||
if (!doc.metadata.permalink || !doc.metadata.permalink.length) {
|
||||
continue;
|
||||
if (doc.metadata.permalink === "/") {
|
||||
doc.metadata.permalink = "/index";
|
||||
}
|
||||
const document = new document_1.Document(this.getHtmlPath(doc));
|
||||
bar.update({ suffix: doc.metadata.permalink });
|
||||
|
||||
@@ -69,8 +69,8 @@ export class DocsPlugin {
|
||||
bar.start(this.docs.length, 0, {prefix: 'rendering images', suffix: '-'})
|
||||
for (const doc of this.docs) {
|
||||
console.log("doc", doc)
|
||||
if (!doc.metadata.permalink || !doc.metadata.permalink.length) {
|
||||
continue;
|
||||
if (doc.metadata.permalink === "/") {
|
||||
doc.metadata.permalink = "/index"
|
||||
}
|
||||
const document = new Document(this.getHtmlPath(doc)!)
|
||||
bar.update({ suffix: doc.metadata.permalink })
|
||||
|
||||
Reference in New Issue
Block a user