blog/themes/icarus/scripts/index.js

34 lines
1.3 KiB
JavaScript
Executable File

/* global hexo */
const logger = require('hexo-log')();
/**
* Print welcome message
*/
logger.info(`Welcome to Soviet Union
Here is the offical site of CCCP
https://gov.com.su
SOVIET UNION
=======================================
██╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗
██║██╔════╝██╔══██╗██╔══██╗██║ ██║██╔════╝
██║██║ ███████║██████╔╝██║ ██║███████╗
██║██║ ██╔══██║██╔══██╗██║ ██║╚════██║
██║╚██████╗██║ ██║██║ ██║╚██████╔╝███████║
╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝
=============================================`);
/**
* Check if all dependencies are installed
*/
require('../include/dependency')(hexo);
/**
* Configuration file checking and migration
*/
require('../include/config')(hexo);
/**
* Register Hexo extensions and remove Hexo filters that could cause OOM
*/
require('../include/register')(hexo);