mirror of
https://github.com/wassname/template.git
synced 2026-07-06 05:17:25 +08:00
Fix: crash if no byline was present
This commit is contained in:
+3
-1
@@ -113,7 +113,9 @@ export const Controller = {
|
||||
}
|
||||
|
||||
const byline = document.querySelector('d-byline');
|
||||
byline.frontMatter = frontMatter;
|
||||
if (byline) {
|
||||
byline.frontMatter = frontMatter;
|
||||
}
|
||||
},
|
||||
|
||||
DOMContentLoaded() {
|
||||
|
||||
Reference in New Issue
Block a user