We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 907d55b commit 679d7a0Copy full SHA for 679d7a0
scripts/filters/default-injects.js
@@ -7,6 +7,10 @@ const points = require('./../injects-point');
7
hexo.extend.filter.register('theme_inject', (injects) => {
8
let filePath = hexo.theme.config.custom_file_path;
9
10
+ if (!filePath) {
11
+ return;
12
+ }
13
+
14
points.views.forEach((key) => {
15
if (filePath[key]) {
16
injects[key].file('custom', filePath[key]);
0 commit comments