Hexo Class
Description
All Hexo methods and functions are defined inside of this namespace.
Constructor
Hexo
All Hexo methods and functions are defined inside of this namespace.
Methods
bootstrap
(baseDir, args) chainablecall
(name, [args], [callback]) chainableasyncProperties
base_dir
finalThe path of base directory, equals to the current working directory (CWD).
config
Configuration.
core_dir
finalThe path of core directory of Hexo.
env
finalEnvironment variables.
This object contains the following attributes:
- debug: Determines whether debug mode is on.
- safe: Determines whether safe mode is on.
- silent: Determines whether silent mode is on.
- env: Node.js environment variable. Default to
development
. - version: Hexo version number.
- init: Determines whether Hexo has been initalized.
extend
The extend instance.
file
See util.file2.
lib_dir
finalThe path of library directory of Hexo.
model
The model instance.
plugin_dir
The path of plugin directory.
public_dir
The path of public directory.
scaffold_dir
The path of scaffold directory.
script_dir
The path of script directory.
source_dir
The path of source directory.
theme_dir
The path of theme directory.
theme_script_dir
The path of theme script directory.
version
finalHexo version number.
Events
deployAfter
(err)deployBefore
Fired before deployment.
exit
Fired when Hexo is about to exit.
new
(path, content)processAfter
(base)processBefore
(base)ready
Fired when Hexo is ready.
server
Fired after server started.