2025-2-26-fixed
This commit is contained in:
43
themes/fluid/scripts/events/lib/hello.js
Normal file
43
themes/fluid/scripts/events/lib/hello.js
Normal file
@@ -0,0 +1,43 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (hexo) => {
|
||||
if (hexo.theme.has_hello) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (hexo.theme.i18n.languages[0].search(/zh-CN/i) !== -1) {
|
||||
hexo.log.info(`
|
||||
------------------------------------------------
|
||||
| |
|
||||
| ________ __ _ __ |
|
||||
| |_ __ |[ | (_) | ] |
|
||||
| | |_ \\_| | | __ _ __ .--.| | |
|
||||
| | _| | |[ | | | [ |/ /'\`\\' | |
|
||||
| _| |_ | | | \\_/ |, | || \\__/ | |
|
||||
| |_____| [___]'.__.'_/[___]'.__.;__] |
|
||||
| |
|
||||
| 感谢使用 Fluid 主题 |
|
||||
| 文档: https://hexo.fluid-dev.com/docs/ |
|
||||
| |
|
||||
------------------------------------------------
|
||||
`);
|
||||
} else {
|
||||
hexo.log.info(`
|
||||
------------------------------------------------
|
||||
| |
|
||||
| ________ __ _ __ |
|
||||
| |_ __ |[ | (_) | ] |
|
||||
| | |_ \\_| | | __ _ __ .--.| | |
|
||||
| | _| | |[ | | | [ |/ /'\`\\' | |
|
||||
| _| |_ | | | \\_/ |, | || \\__/ | |
|
||||
| |_____| [___]'.__.'_/[___]'.__.;__] |
|
||||
| |
|
||||
| Thank you for using Fluid theme |
|
||||
| Docs: https://hexo.fluid-dev.com/docs/en/ |
|
||||
| |
|
||||
------------------------------------------------
|
||||
`);
|
||||
}
|
||||
|
||||
hexo.theme.has_hello = true;
|
||||
};
|
||||
Reference in New Issue
Block a user