mirror of
https://github.com/litruv/Docs-Viewer.git
synced 2026-11-27 00:45:52 +11:00
update to use metadata.site_name
This commit is contained in:
1 parent
c1c4c12c10
commit
a7778d54d4
1 file changed
+2
-2
@@ -616,9 +616,9 @@ class Documentation {
|
||||
|
||||
async loadDocument(path) {
|
||||
try {
|
||||
const { content, metadata, marked, title } = await this.documentService.loadDocument(path);
|
||||
const { content, metadata, marked } = await this.documentService.loadDocument(path);
|
||||
|
||||
this.domService.setTitle(title);
|
||||
this.domService.setTitle(metadata.site_name);
|
||||
this.domService.setContent(marked.parse(content));
|
||||
this.domService.updateActiveDocument(path);
|
||||
|
||||
|
||||
Reference in new issue
Block a user