First Blog by Hexo
Welcome to Hexo! This is my 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
Hexo markdown语法
Clear cache, generate static files and deploy
1 |
|
Create a new post
1 |
|
More info: Writing
Run server
1 |
|
More info: Server
Generate static files
1 |
|
More info: Generating
Deploy to remote sites
1 |
|
More info: Deployment
Hexo博文撰写规范
- 新建草稿
1 |
|
- 一边编辑
markdown
文章,一边使用浏览器预览
1 |
|
- 将草稿发布为正式文章
1 |
|
样式自定义
替换Mac风格代码块
在主题文件themes\fluid\source\css
目录下新建样式文件,如macpanel.styl
,内容参考:
1 |
|
修改主题配置文件_config.fluid.yml
,找到custom_css
配置项,引入刚刚新建的样式文件(此处引入.styl
文件无需加后缀):
1 |
|
继续修改_config.fluid.yml
,找到code.highlightjs
配置项,将代码高亮风格修改暗色风格(dark系列),如:
1 |
|
注:如果选用其他代码高亮风格,有可能会造成代码背景是偏白色的,与黑色的Mac栏不搭。
First Blog by Hexo
https://blog.alist-ruyi.top/2024/08/first-blog/