hexo项目如何转化为HTML,测试hexo生成html

66b52468c121889b900d4956032f1009.png

8种机械键盘轴体对比

本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?

目的:

写这篇文章的目的主要是为了测试在本地进行md文件的编写是否能使用hexo进行html生成,然后上传到github上,通过访问https://day21.top 这个网站查看能否看到最新的文章

操作步骤:

[email protected] MINGW64 /f/myself/643435675.github.io (master)

$ gem install jekyll

Successfully installed jekyll-3.6.2

Parsing documentation for jekyll-3.6.2

Done installing documentation for jekyll after 2 seconds

1 gem installed

[email protected] MINGW64 /f/myself/643435675.github.io (master)

$ jekyll s

Configuration file: F:/myself/643435675.github.io/_config.yml

Source: F:/myself/643435675.github.io

Destination: F:/myself/643435675.github.io/_site

Incremental build: disabled. Enable with --incremental

Generating...

done in 5.499 seconds.

Please add the following to your Gemfile to avoid polling for changes:

gem 'wdm', '>= 0.1.0' if Gem.win_platform?

Auto-regeneration: enabled for 'F:/myself/643435675.github.io'

Server address: http://127.0.0.1:4001/

Server running... press ctrl-c to stop.

[email protected] MINGW64 /f/myself/643435675.github.io (master)

$ jekyll serve

Configuration file: F:/myself/643435675.github.io/_config.yml

Source: F:/myself/643435675.github.io

Destination: F:/myself/643435675.github.io/_site

Incremental build: disabled. Enable with --incremental

Generating...

done in 2.859 seconds.

Please add the following to your Gemfile to avoid polling for changes:

gem 'wdm', '>= 0.1.0' if Gem.win_platform?

Auto-regeneration: enabled for 'F:/myself/643435675.github.io'

Server address: http://127.0.0.1:4001/

Server running... press ctrl-c to stop.

主要进行了以上操作:

cd 643435675.github.io 文件夹下

执行命令:

gem install jekyll

下一步: jekyll s

接下来: jekyll serve

然后这样就可以在浏览器中输入:http://127.0.0.1:4001/ 进行刚刚文章的访问了。

补充:

因为首页与详情页显示某篇文章的内容是不一样的,在首页中进行文章的裁剪显示:

需要进行加入四个空行:

## 目的:

写这篇文章的目的主要是为了测试在本地进行md文件的编写是否能使用hexo进行html生成,然后上传到github上,通过访问https://day21.top 这个网站查看能否看到最新的文章

## 操作步骤:

不进行添加的话,首页会把整篇文章完全展示出来,添加了四个空行之后就只会显示部分了,当然了,这篇文章在首页是显示的部分,也就是目的下的内容

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值