From 1fa0c6cd4c93d37cb1aca86318476fa3b21c2b77 Mon Sep 17 00:00:00 2001 From: 135e2 <135e2@135e2.tk> Date: Thu, 13 Oct 2022 00:55:39 +0800 Subject: fix: check Chapter type ... to avoid the following error (while we don't have chapters): Uncaught ReferenceError: Chapter is not defined --- layout/_partial/scripts.ejs | 2 +- layout/post.ejs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'layout') diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index 5eeac9e..61aece8 100644 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -46,7 +46,7 @@ - <% } %> + <% } %> <% } %> diff --git a/layout/post.ejs b/layout/post.ejs index 3428ddf..67f1ed0 100644 --- a/layout/post.ejs +++ b/layout/post.ejs @@ -54,7 +54,7 @@ <% } %>