UNPKG
hexo-theme-yun
Version:
latest (1.10.11)
1.10.11
1.10.9
1.10.8
1.10.7
1.10.6
1.10.5
1.10.4
1.10.3
1.10.2
1.10.1
1.10.0
1.9.3
1.9.1
1.9.0
1.8.11
1.8.10
1.8.9
1.8.8
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.0.0
0.9.6
0.1.0
☁️ A fast & light & lovely theme for Hexo.
yun.yunyoujun.cn
YunYouJun/hexo-theme-yun
hexo-theme-yun
/
scripts
/
events
/
data.js
9 lines
(7 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
fs =
require
(
'fs'
)
const
path =
require
(
'path'
)
module
.
exports
=
(
hexo
) =>
{
// set default config
const
aboutSite = path.
resolve
(process.
cwd
(),
'source/about/site.md'
) hexo.
theme
.
config
.
hasAboutSite
= fs.
existsSync
(aboutSite) }