$ hexo clean INFO Validating config INFO Deleted database.
$ hexo g INFO Validating config INFO Start processing INFO Files loaded in 111 ms INFO Generated: archives/index.html INFO Generated: archives/2022/10/index.html INFO Generated: index.html INFO Generated: fancybox/jquery.fancybox.min.css INFO Generated: archives/2022/index.html INFO Generated: js/script.js INFO Generated: css/style.css INFO Generated: css/fonts/fontawesome-webfont.woff2 INFO Generated: fancybox/jquery.fancybox.min.js INFO Generated: css/fonts/fontawesome-webfont.woff INFO Generated: js/jquery-3.4.1.min.js INFO Generated: css/fonts/fontawesome-webfont.eot INFO Generated: 2022/10/23/hello-world/index.html INFO Generated: css/fonts/FontAwesome.otf INFO Generated: css/fonts/fontawesome-webfont.ttf INFO Generated: css/images/banner.jpg INFO Generated: css/fonts/fontawesome-webfont.svg INFO 17 files generated in 268 ms
此时当前文件夹下生成了一个 public 文件夹用于储存生成的静态文件,到时候部署也是部署这个文件夹上去;
另外,如果 hexo clean 命令生效,则效果如下:
1 2 3 4
$ hexo clean INFO Validating config INFO Deleted database. INFO Deleted public folder.
# Site title:黑色天际线的博客空间 subtitle:'测试版' description:'此博客空间为个人学习笔记上传处' keywords:学习笔记 author:寻光 # language: en language:zh-CN timezone:'Asia/Shanghai'
# URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' url:http://Black-Skyline.github.io
$ hexo d INFO Validating config INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... INFO Copying files from extend dirs... warning: LF will be replaced by CRLF in 2022/10/23/hello-world/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in archives/2022/10/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in archives/2022/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in archives/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in css/fonts/fontawesome-webfont.svg. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in css/style.css. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.min.js. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in js/jquery-3.4.1.min.js. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in js/script.js. The file will have its original line endings in your working directory On branch master nothing to commit, working tree clean Enumerating objects: 34, done. Counting objects: 100% (34/34), done. Delta compression using up to 12 threads Compressing objects: 100% (26/26), done. Writing objects: 100% (34/34), 882.38 KiB | 13.79 MiB/s, done. Total 34 (delta 3), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (3/3), done. remote: remote: Create a pull request for'master' on GitHub by visiting: remote: https://github.com/Black-Skyline/Black-Skyline.github.io/pull/new/master remote: To https://github.com/Black-Skyline/Black-Skyline.github.io * [new branch] HEAD -> master branch 'master'set up to track 'https://github.com/Black-Skyline/Black-Skyline.github.io/master'. INFO Deploy done: git
$ git init Initialized empty Git repository in D:/HexoBlog/FirstBlog/.git/
用户名@git命令行名 /d/HexoBlog/FirstBlog (master) $ git add . warning: LF will be replaced by CRLF in package-lock.json. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in package.json. The file will have its original line endings in your working directory
用户名@git命令行名 /d/HexoBlog/FirstBlog (backup) $ git commit -m "first commit in local branch backup" On branch backup nothing to commit, working tree clean
npm un hexo-renderer-marked --save # 这一行是删除之前本地存在的hexo-renderer-marked插件,保证之后下载到最新版 npm i hexo-renderer-multi-markdown-it --save npm i hexo-autoprefixer --save npm i hexo-algolia --save npm i hexo-algoliasearch --save npm i hexo-symbols-count-time --save npm i hexo-feed --save