几天不写就不刻怎么发布了,报错也记录一记录一下。 Hexo中文:https://hexo.io/zh-cn/docs/one-command-deployment
Hexo使用node8比较合适,高版本报错
临时切换低版本:
1 2 3 nvm use v8.11.3 rm -rf node_modules npm install
md生成静态页面
发布
图床 插入视频 1 2 3 <video width="480" height="320" controls> <source src="media/cashpad_clear_data.mp4"> </video>
标签举例 1 <embed src="http://player.youku.com/player.php/Type/Folder/Fid/27690810/Ob/1/sid/XMTY1MTI3NjMyNA==/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>
1 <iframe height=498 width=510 src="http://player.youku.com/embed/XMTY1MTI3NjMyNA==" frameborder=0 allowfullscreen></iframe>
javascript标签 1 <script type="text/javascript" src="http://www.xiami.com/widget/player-single?uid=32329501&sid=1776238762&mode=js"></script>
站内链接 1 {% post_link 文章文件名(不要后缀) 文章标题(可选) %}
例: 跳转到:adb 跳转到:文章标题是NodeMQ
布暑阿里云虚拟主机 参考FTPSync: https://hexo.io/docs/one-command-deployment 中文:https://hexo.io/zh-cn/docs/one-command-deployment
1 npm install hexo-deployer-ftpsync --save
报错:
这个错误不影响,忽略
1 2 3 4 5 6 7 8 ... Additions complete. Remove failed. Removals failed. Commit failed. FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html Error: 550 Delete operation failed. ....
布暑到阿里云&git 1 2 3 4 5 6 7 8 9 10 11 12 13 14 deploy: - type: git repo: git@github.com:xxx/xxx.github.io.git branch: master - type: ftpsync host: bxuxxx.my3w.com # ftp服务器地址 user: bxuxxx # ftp用户名 pass: 1111111 # 你的ftp用户密码 remote: /htdocs # 你要上传到的地址,例如/wwwroot port: 21 # ftp端口,不同的ftp可能会不一样 ignore: .DS_Store delete: true # 上传本地文件是否删除ftp中的所有文件 verbose: true # 是否打印调试信息 ignore_errors: false # 是否忽略错误
打开收银测试 打开收银测试
1 <a href="qianmi://cashier:80/cashpad">打开收银测试</a>
JS测试
生成页面空白 报错:
1 2 3 4 5 6 7 (node:26530) [DEP0128] DeprecationWarning: Invalid 'main' field in '/data/data/com.termux/files/home/blog/node_modules/jsftp/package.json' of './jsftp.js'. Please either fix that or report it to the module author (Use `node --trace-deprecation ...` to show where the warning was created) INFO Start processing Version 9 of Highlight.js has reached EOL and is no longer supported. Please upgrade or ask whatever dependency you are using to upgrade. https://github.com/highlightjs/highlight.js/issues/2877 INFO Files loaded in 1.69 s
1 2 3 4 npm install --save highlight.js yarn upgrade highlight.js npm upgrade highlight.js jsftp.js
MWeb配置 CMD + E 打开外部模式。 导入文件夹:
右键引入文件夹编辑:
图床设置