这是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
|
|
More info: Writing
Run server
|
|
可简写为
More info: Server
Generate static files
|
|
可简写为
清除之前的静态文件
|
|
More info: Generating
Deploy to remote sites
|
|
More info: Deployment
注1:顺便提几句其他的,关于title,data,tag以及catagery的书写,要注意冒号后面应该留有空格,不然就会报错。
注2:在上传到github后,页面不一定立马就能更新,要等一会儿,而且会出现只更新了部分页面的情况,所以,不要急,等一下之后再看看可能就好了。
注3:用<!–more–>这个符号来对长的文章进行缩略显示,这是hexo推荐的写法。
注4:关于图像的添加办法,操作步骤为:
- 把配置文件_config.yml 里的post_asset_folder这个选项设置为true
- 在hexo目录下执行这样一句话npm install hexo-asset-image –save ,用来下载上传图片的插件
- 运行hexo n “xxxx”来生成md博文时,文件夹内除了xxxx.md文件还有一个同名的文件夹,用来存放图片
- 在xxxx.md中想引入图片时,先把图片复制到xxxx这个文件夹中,再在markdown文件中对应的位置输入:
