-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
166 lines (110 loc) · 10.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="zh-cmn-Hans" prefix="og: http://ogp.me/ns#" class="han-init">
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>Hexo</title>
<link rel="stylesheet" href="/css/style.css">
<!--在这里倒入jquery 方便处理部分页面的jquery-->
<script src="http://lib.sinaapp.com/js/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
</head>
<body class="home">
<header class="site-header site-color" id="site-header-id">
<div class="container">
<h1><a href="/" title="Hexo"><span class="octicon octicon-mark-github"></span> Hexo</a></h1>
<nav class="site-header-nav" role="navigation">
<a href="/" class=" site-header-nav-item hvr-underline-from-center" title="Home">Home</a>
</nav>
</div>
</header>
<section class="banner">
<div class="collection-head">
<div class="container">
<div class="collection-title">
<h1 class="collection-header" id="site-description">
</h1>
<script type="text/javascript">
$(function(){
});
</script>
<div class="collection-info">
<span class="meta-info">
<span class="octicon octicon-location">
GuangZhou, China
</span>
</span>
</div>
</div>
</div>
</div>
</section>
<section class="container content">
<div class="columns">
<div class="column two-thirds">
<article id="post-写一篇文章试试" class="repo-list">
<div class="repo-list-item" >
<h3 class="repo-list-name" itemprop="name">
</h3>
<div class="repo-list-description article-entry">
<h2 id="RDC’s-Blog"><a href="#RDC’s-Blog" class="headerlink" title="RDC’s Blog"></a><a href="http://gdutrdc.github.io/" target="_blank" rel="external">RDC’s Blog</a></h2><h3 id="怎么发表博客"><a href="#怎么发表博客" class="headerlink" title="怎么发表博客"></a>怎么发表博客</h3><h4 id="1-将项目clone到本地"><a href="#1-将项目clone到本地" class="headerlink" title="1 将项目clone到本地"></a>1 将项目clone到本地</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git clone https://github.com/gdutrdc/blog-code.git</span><br></pre></td></tr></table></figure>
<h4 id="2-下载安装node,已经安装跳过此步骤"><a href="#2-下载安装node,已经安装跳过此步骤" class="headerlink" title="2 下载安装node,已经安装跳过此步骤"></a>2 <a href="https://nodejs.org/dist/v4.3.2/node-v4.3.2-x64.msi" target="_blank" rel="external">下载安装node</a>,已经安装跳过此步骤</h4><h4 id="3-进入-blog-themes-目录,打开命令行"><a href="#3-进入-blog-themes-目录,打开命令行" class="headerlink" title="3 进入/blog/themes/目录,打开命令行"></a>3 进入<code>/blog/themes/</code>目录,打开命令行</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git clone https://github.com/yumemor/hexo-theme-primer.git</span><br></pre></td></tr></table></figure>
<h4 id="4-安装成功后将hexo-theme-primer这个文件夹重命名为primer"><a href="#4-安装成功后将hexo-theme-primer这个文件夹重命名为primer" class="headerlink" title="4 安装成功后将hexo-theme-primer这个文件夹重命名为primer"></a>4 安装成功后将<code>hexo-theme-primer</code>这个文件夹重命名为<code>primer</code></h4><h4 id="5-退回blog文件夹,在当前位置打开命令行工具"><a href="#5-退回blog文件夹,在当前位置打开命令行工具" class="headerlink" title="5 退回blog文件夹,在当前位置打开命令行工具"></a>5 退回blog文件夹,在当前位置打开命令行工具</h4><h4 id="6-安装hexo-cli"><a href="#6-安装hexo-cli" class="headerlink" title="6 安装hexo-cli"></a>6 安装hexo-cli</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-cli -g</span><br></pre></td></tr></table></figure>
<p>如果因为墙而安装不了,加一下淘宝的镜像<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-cli -g --registry=https://registry.npm.taobao.org</span><br></pre></td></tr></table></figure></p>
<h4 id="7-安装hexo插件,在命令行输入"><a href="#7-安装hexo插件,在命令行输入" class="headerlink" title="7 安装hexo插件,在命令行输入"></a>7 安装hexo插件,在命令行输入</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install</span><br></pre></td></tr></table></figure>
<p>安装不了同样加上镜像<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install --registry=https://registry.npm.taobao.org</span><br></pre></td></tr></table></figure></p>
<h4 id="8-安装完毕之后可以开始写东西了"><a href="#8-安装完毕之后可以开始写东西了" class="headerlink" title="8 安装完毕之后可以开始写东西了"></a>8 安装完毕之后可以开始写东西了</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo new "写一篇博文试试"</span><br></pre></td></tr></table></figure>
<h4 id="9-在-blog-source-posts这个目录下可以看到生成一个md文件"><a href="#9-在-blog-source-posts这个目录下可以看到生成一个md文件" class="headerlink" title="9 在 blog\source\_posts这个目录下可以看到生成一个md文件"></a>9 在 <code>blog\source\_posts</code>这个目录下可以看到生成一个md文件</h4><p><img src="http://7xn5s5.com1.z0.glb.clouddn.com/hexo.png" alt="hexo new"></p>
<h4 id="10-打开你喜欢的编辑器,编辑这个md文件-md语法"><a href="#10-打开你喜欢的编辑器,编辑这个md文件-md语法" class="headerlink" title="10 打开你喜欢的编辑器,编辑这个md文件(md语法)"></a>10 打开你喜欢的编辑器,编辑这个md文件(<a href="https://github.com/LearnShare/Learning-Markdown/blob/master/README.md" target="_blank" rel="external">md语法</a>)</h4><h4 id="11-编辑完保存后,输入"><a href="#11-编辑完保存后,输入" class="headerlink" title="11 编辑完保存后,输入"></a>11 编辑完保存后,输入</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo g</span><br></pre></td></tr></table></figure>
<p>将这篇md语法的文章生成对应的html文件</p>
<h4 id="12-打开一个静态服务器预览"><a href="#12-打开一个静态服务器预览" class="headerlink" title="12 打开一个静态服务器预览"></a>12 打开一个静态服务器预览</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo s</span><br></pre></td></tr></table></figure>
<h4 id="13-一切都ok,输入"><a href="#13-一切都ok,输入" class="headerlink" title="13 一切都ok,输入"></a>13 一切都ok,输入</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo d</span><br></pre></td></tr></table></figure>
<p>将其部署到github上</p>
<h4 id="14-最后,记得提交整个blog代码!!!!!"><a href="#14-最后,记得提交整个blog代码!!!!!" class="headerlink" title="14 最后,记得提交整个blog代码!!!!!"></a>14 最后,记得提交整个blog代码!!!!!</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">git add -A</span><br><span class="line">git commit -m "test"</span><br><span class="line">git push origin master</span><br></pre></td></tr></table></figure>
</div>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span>
<time datetime="2016-03-07T08:52:31.543Z" itemprop="datePublished">2016-03-07</time>
</span>
<!--
-->
<span class="article-more-link">
<a href="/2016/03/07/写一篇文章试试/#more" class="btn btn-sm btn-outline">Read More</a>
</span>
</p>
</div>
</article>
</div>
<div class="column one-third">
</div>
</div>
</section>
<footer class="container">
<div class="site-footer" role="contentinfo">
<div class="copyright left mobile-block">
© 2016
<span title="yumemor">yumemor</span>
<a href="javascript:window.scrollTo(0,0)" class="right mobile-visible">TOP</a>
</div>
<ul class="site-footer-links right mobile-hidden">
<li>
<a href="javascript:window.scrollTo(0,0)" >TOP</a>
</li>
</ul>
<a href="http://gdutrdc.github.io/" target="_blank" aria-label="view source code">
<span class="mega-octicon octicon-mark-github" title="GitHub"></span>
</a>
<ul class="site-footer-links mobile-hidden">
<li>
<a href="/" title="Home">Home</a>
</li>
</ul>
</div>
</footer>
<script src="/js/typer.js"></script>
<script src="/js/geopattern.js"></script>
<script src="/js/index.js"></script>
</body>
</html>