This is a post to record some solutions in blog with hexo
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment
美化方案
用css控制Markdown表格列宽
参考: http://blog.echoxu.cn/2018-05-15-Hexo中用CSS控制Markdown各列表格宽度.html
编辑
post样式
参考: 添加文章书写样
置顶文章:
添加站内文章链接
\{\% post_link post_name_in_source_posts link_show_title \%}
[title](/year/month/day/name.md#section)
字体颜色
- 可以直接在Markdown 文档编辑中使用html语法
<font size=4 > 这里输入文字,自定义大小 </font>
<font color="#FF0000"> 这里输入文字,自定义颜色的字体 </font>
插入图片
- 图片大小控制:
<div style="width: 200px; margin: auto">![image-caption](image-link)</div>
在Hexo中渲染MathJax数学公式
bugs
fatal: multiple stage entries for merged file 'lib/pace'
cd .deploy_git
rm .git/index
git add -A
git commit -m ""
迁移
- 重装hexo、配置依赖
- Git clone next主题
- 复制 站点配置 文件和 主题文件夹
- 复制 source 文件夹