forked from xudailong/xudailong.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
--- | ||
layout: post | ||
title: "这是徐代龙进行的第二篇文章" | ||
categories: SnakeSon | ||
tags: hexo JavaScript | ||
author: SnakeSon | ||
--- | ||
|
||
* content | ||
{:toc} | ||
|
||
## 目的: | ||
|
||
写这篇文章的目的主要是为了测试在本地进行md文件的编写是否能使用hexo进行html生成,然后上传到github上,通过访问https://day21.top 这个网站查看能否看到最新的文章 | ||
|
||
|
||
|
||
|
||
## 操作步骤: | ||
|
||
``` | ||
spencer@spencer-it1 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 | ||
spencer@spencer-it1 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. | ||
spencer@spencer-it1 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 这个网站查看能否看到最新的文章 | ||
## 操作步骤: | ||
``` | ||
|
||
不进行添加的话,首页会把整篇文章完全展示出来,添加了四个空行之后就只会显示部分了,当然了,这篇文章在首页是显示的部分,也就是**目的下的内容** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters