博客已经搭建好了,虽然功能比较少,但是还是可以写文章的

新建文章

使用命令来新建文章

1
hexo new [layout] <title>

layout 是文章的布局,默认为post,可以先不写。
title 是文章的标题,也是文件的名字,存储在source/_posts下。
创建文章

1
2
3
[root@localhost blog]# hexo new "如何在hexo上创建一篇文章"
...
INFO Created: /blog/source/_posts/如何在hexo上创建一篇文章.md

这样就在hexo中创建了一篇名为”如何在hexo上创建一篇文章”的文章了
在MarkDown编辑器上打开就可以编辑了

1
2

![示例图片](https://example.com/example.jpg)

参数值

写完文章后输入

1
2
3

hexo g && hexo d

播放视频的方法

1
2
3
<div style="position: relative; width: 100%; height: 0; padding-bottom: 75%;">
<iframe src="//player.bilibili.com/player.html?aid=xxx&cid=yyy&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="position: absolute; width: 100%; height: 100%; left: 0; top: 0;"></iframe>
</div>

下期再说��再说