mirror of
https://github.com/wassname/template.git
synced 2026-10-04 13:10:06 +08:00
Fix: crash if no byline was present
This commit is contained in:
1 parent
5e237be027
commit
08fafcf2ee
1 file changed
+3
-1
+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