Welcome to 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.
Quickstart
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
next
主要记录一下 next 主题的一些简单的配置,以便后面更加轻松的使用 next 的一些配置。
下载主题
1 | cd hexo |
主题说明
在项目文件中有多个_config.yml文件,为方便区分。
-
hexo 根目录下的
_config.yml称为站点配置文件。 -
next 主题文件夹下的
theme/next/_config.yml称为主题配置文件。
设置语言
在主题配置文件中设置简体中文
1 | language: zh-CN |
设置 Menu
新建页面
1 | hexo new page categories |
为文章指定分类
1 | title: Next主题配置 |
更新主题
1 | cd themes/next |
参考
markdown 嵌入 ipynb
登陆 nbviewer ,然后输入相应的 ipynb 文件链接,即可在线显示。也可以在本地的 jupyter 中打开。
1 | <iframe src="https://nbviewer.jupyter.org/github/royalosyin/Python-Practical-Application-on-Climate-Variability-Studies/blob/master/ex12-Analysis%20of%20Monthly%20GPCP%20precipitation.ipynb" width="570" height="2000"></iframe> |
Github CI/CD
配置 私有仓库存储 hexo 笔记, 公有仓库存储生成的 静态页面.
1 | # .github/workflows/deploy.yml |