-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
248 lines (162 loc) · 11.9 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="baidu-site-verification" content="KEOCOtHZ0o" />
<title>MySunnyShine's Blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:type" content="website">
<meta property="og:title" content="MySunnyShine's Blog">
<meta property="og:url" content="https://mysunnyshine.github.io/index.html">
<meta property="og:site_name" content="MySunnyShine's Blog">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="MySunnyShine's Blog">
<link rel="alternate" href="/atom.xml" title="MySunnyShine's Blog" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">MySunnyShine's Blog</a>
</h1>
<h2 id="subtitle-wrap">
<a href="/" id="subtitle">Do one thing at a time,and do well.</a>
</h2>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="Søk"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="https://mysunnyshine.github.io"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-My-Hexo-First-Article" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/12/10/My-Hexo-First-Article/" class="article-date">
<time datetime="2016-12-10T03:09:39.000Z" itemprop="datePublished">2016-12-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/12/10/My-Hexo-First-Article/">My First Article</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Welcome to <a href="https://mysunnyshine.github.io/">my blog</a>! My name is weili from China. This is your very first post. You can search at the top-right corner on my site for more info. If you get any problems when reading my blogs, you can send the email to <a href="mailto:myjavaday@sina.com">myjavaday@sina.com</a> or you can ask me on my <a href="https://github.com/mysunnyshine/mysunnyshine.github.io" target="_blank" rel="external">GitHub</a>.</p>
<font color="red">This blog will show you how to build your own site based on Github Pages and Hexo.</font>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><ul>
<li>install Node.js</li>
<li>install git for windows</li>
<li>install hexo</li>
</ul>
<h3 id="1-Install-Node-js"><a href="#1-Install-Node-js" class="headerlink" title="1.Install Node.js"></a>1.Install Node.js</h3><p><a href="https://nodejs.org/en/" target="_blank" rel="external">Node.js</a> is avaiable at the offical site.Choose the latest version and install by default settings.</p>
<h3 id="2-Install-Git-for-windows"><a href="#2-Install-Git-for-windows" class="headerlink" title="2.Install Git for windows"></a>2.Install Git for windows</h3><p>My client for git is <a href="https://git-for-windows.github.io/" target="_blank" rel="external">msysgit</a>. All default settings is ok.</p>
<h3 id="3-Configure-GitHub"><a href="#3-Configure-GitHub" class="headerlink" title="3.Configure GitHub"></a>3.Configure GitHub</h3><p>This blog talks about it in details. <a href="http://www.dss886.com/2014/05/05/03/" target="_blank" rel="external">http://www.dss886.com/2014/05/05/03/</a></p>
<h3 id="4-Install-Hexo"><a href="#4-Install-Hexo" class="headerlink" title="4.Install Hexo"></a>4.Install Hexo</h3><h4 id="installation"><a href="#installation" class="headerlink" title="- installation"></a>- installation</h4><p>open the console and run the command:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ npm install -g hexo</div></pre></td></tr></table></figure>
<h4 id="initiation"><a href="#initiation" class="headerlink" title="- initiation"></a>- initiation</h4><p>cd to your directory and run the command:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo init</div></pre></td></tr></table></figure>
<h4 id="generate-static-html"><a href="#generate-static-html" class="headerlink" title="- generate static html"></a>- generate static html</h4><p>in your directory and run the command:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo g</div></pre></td></tr></table></figure>
<h4 id="local-service-start"><a href="#local-service-start" class="headerlink" title="-local service start"></a>-local service start</h4><p>now run the command:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo server</div></pre></td></tr></table></figure>
<p>you can visit <a href="http://localhost:4000" target="_blank" rel="external">http://localhost:4000</a> at your web browser</p>
<h3 id="5-Deploy-your-blog-to-your-GitHub"><a href="#5-Deploy-your-blog-to-your-GitHub" class="headerlink" title="5.Deploy your blog to your GitHub"></a>5.Deploy your blog to your GitHub</h3><p>open the config file _config.yml and amend as the picture shows.<br>State: After the “: “, a space symbol must follow.</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line"><span class="comment"># Deployment</span></div><div class="line"><span class="comment">## Docs: https://hexo.io/docs/deployment.html</span></div><div class="line">deploy:</div><div class="line"> <span class="built_in">type</span>: git</div><div class="line"> repository: https://github.com/mysunnyshine/mysunnyshine.github.io.git</div><div class="line"> branch: master</div></pre></td></tr></table></figure>
<h3 id="6-Create-a-new-post"><a href="#6-Create-a-new-post" class="headerlink" title="6.Create a new post"></a>6.Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo new <span class="string">"My New Post"</span></div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="external">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div></pre></td><td class="code"><pre><div class="line">$ hexo server</div><div class="line">```s</div><div class="line"></div><div class="line">More info: [Server](https://hexo.io/docs/server.html)</div><div class="line"></div><div class="line"><span class="comment">### Generate static files</span></div><div class="line"></div><div class="line">``` bash</div><div class="line">$ hexo generate</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="external">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo deploy</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="external">Deployment</a></p>
</div>
<footer class="article-footer">
<a data-url="https://mysunnyshine.github.io/2016/12/10/My-Hexo-First-Article/" data-id="cixei3ppd0001yov4m0rf13la" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-hello-world" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/12/10/hello-world/" class="article-date">
<time datetime="2016-12-09T18:04:35.777Z" itemprop="datePublished">2016-12-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/12/10/hello-world/">Hello World</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
</div>
<footer class="article-footer">
<a data-url="https://mysunnyshine.github.io/2016/12/10/hello-world/" data-id="cixei3pon0000yov4ip4knrud" class="article-share-link">Share</a>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">Arkiv</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">December 2016</a><span class="archive-list-count">2</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Siste innlegg</h3>
<div class="widget">
<ul>
<li>
<a href="/2016/12/10/My-Hexo-First-Article/">My First Article</a>
</li>
<li>
<a href="/2016/12/10/hello-world/">Hello World</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2017 Weili<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
<div id="footer-info" class="inner">
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span id="busuanzi_container_site_pv">本站总访问量<span id="busuanzi_value_site_pv"></span>次</span>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>