mirror of
https://github.com/litruv/Docs-Viewer.git
synced 2026-07-24 02:36:07 +10:00
update to use metadata.site_name
This commit is contained in:
4
index.js
4
index.js
@@ -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