hexo-theme-vno
hexo-theme-vno copied to clipboard
Cannot read property 'substring' of null
_config.yml
如果不填写description
的话,代码会报错
Unhandled rejection TypeError: /Users/burlinchen/Projects/git-master/blog/themes/vno/layout/layout.ejs:1
>> 1| <%- partial('_partial/head') %>
2| <body class="home-template no-js">
3|
4| <span class="mobile btn-mobile-menu">
/Users/burlinchen/Projects/git-master/blog/themes/vno/layout/_partial/head.ejs:6
4| <meta charset="utf-8"/>
5| <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
>> 6| <%
7| var title = page.title;
8| title = title ? (title + ' | ' + config.title) : (config.subtitle ? config.title + " | " + config.subtitle : config.title);
9|
Cannot read property 'substring' of null
出错代码在下面
https://github.com/lenbo-ma/hexo-theme-vno/blob/521ef7080106418729c2b4e9e7002c82a24123b6/layout/_partial/head.ejs#L18
Inside the sites _config.yml , description: cannot be empty with the current code. Putting "" will bypass it.