Skip to content

Commit a242d2f

Browse files
committed
add to hilight the code
1 parent c0e961d commit a242d2f

File tree

2 files changed

+96
-2
lines changed

2 files changed

+96
-2
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
layout: post
3+
title: "这是徐代龙进行的第二篇文章"
4+
categories: SnakeSon
5+
tags: hexo JavaScript
6+
author: SnakeSon
7+
---
8+
9+
* content
10+
{:toc}
11+
12+
## 目的:
13+
14+
写这篇文章的目的主要是为了测试在本地进行md文件的编写是否能使用hexo进行html生成,然后上传到github上,通过访问https://day21.top 这个网站查看能否看到最新的文章
15+
16+
17+
18+
19+
## 操作步骤:
20+
21+
```
22+
23+
spencer@spencer-it1 MINGW64 /f/myself/643435675.github.io (master)
24+
$ gem install jekyll
25+
Successfully installed jekyll-3.6.2
26+
Parsing documentation for jekyll-3.6.2
27+
Done installing documentation for jekyll after 2 seconds
28+
1 gem installed
29+
30+
spencer@spencer-it1 MINGW64 /f/myself/643435675.github.io (master)
31+
$ jekyll s
32+
Configuration file: F:/myself/643435675.github.io/_config.yml
33+
Source: F:/myself/643435675.github.io
34+
Destination: F:/myself/643435675.github.io/_site
35+
Incremental build: disabled. Enable with --incremental
36+
Generating...
37+
done in 5.499 seconds.
38+
Please add the following to your Gemfile to avoid polling for changes:
39+
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
40+
Auto-regeneration: enabled for 'F:/myself/643435675.github.io'
41+
Server address: http://127.0.0.1:4001/
42+
Server running... press ctrl-c to stop.
43+
44+
45+
spencer@spencer-it1 MINGW64 /f/myself/643435675.github.io (master)
46+
$ jekyll serve
47+
Configuration file: F:/myself/643435675.github.io/_config.yml
48+
Source: F:/myself/643435675.github.io
49+
Destination: F:/myself/643435675.github.io/_site
50+
Incremental build: disabled. Enable with --incremental
51+
Generating...
52+
done in 2.859 seconds.
53+
Please add the following to your Gemfile to avoid polling for changes:
54+
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
55+
Auto-regeneration: enabled for 'F:/myself/643435675.github.io'
56+
Server address: http://127.0.0.1:4001/
57+
Server running... press ctrl-c to stop.
58+
59+
```
60+
61+
主要进行了以上操作:
62+
cd 643435675.github.io 文件夹下
63+
64+
执行命令:
65+
66+
`gem install jekyll `
67+
68+
下一步:
69+
`jekyll s`
70+
71+
接下来:
72+
`jekyll serve`
73+
74+
然后这样就可以在浏览器中输入:http://127.0.0.1:4001/ 进行刚刚文章的访问了。
75+
76+
77+
补充:
78+
79+
因为首页与详情页显示某篇文章的内容是不一样的,在首页中进行文章的裁剪显示:
80+
需要进行加入四个空行:
81+
```
82+
## 目的:
83+
84+
写这篇文章的目的主要是为了测试在本地进行md文件的编写是否能使用hexo进行html生成,然后上传到github上,通过访问https://day21.top 这个网站查看能否看到最新的文章
85+
86+
87+
88+
89+
## 操作步骤:
90+
```
91+
92+
不进行添加的话,首页会把整篇文章完全展示出来,添加了四个空行之后就只会显示部分了,当然了,这篇文章在首页是显示的部分,也就是**目的下的内容**
93+
94+

_posts/2017-12-07-test-my-webapp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ author: SnakeSon
1818

1919
## 操作步骤:
2020

21-
```
21+
```js
2222

2323
spencer@spencer-it1 MINGW64 /f/myself/643435675.github.io (master)
2424
$ gem install jekyll
@@ -78,7 +78,7 @@ cd 643435675.github.io 文件夹下
7878

7979
因为首页与详情页显示某篇文章的内容是不一样的,在首页中进行文章的裁剪显示:
8080
需要进行加入四个空行:
81-
```
81+
```md
8282
## 目的:
8383

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

0 commit comments

Comments
 (0)