-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello-world.html
More file actions
81 lines (76 loc) · 3.72 KB
/
Copy pathhello-world.html
File metadata and controls
81 lines (76 loc) · 3.72 KB
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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello World — Blog</title>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
max-width: 720px;
margin: 0 auto;
padding: 32px 20px 80px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.7;
color: #222;
background: #fff;
}
header { margin-bottom: 40px; }
header a { color: #222; text-decoration: none; font-weight: 700; font-size: 18px; }
nav { margin-top: 6px; }
nav a { color: #555; font-weight: 400; font-size: 14px; margin-right: 12px; }
h1 { font-size: 24px; margin: 32px 0 8px; }
h2 { font-size: 20px; margin: 28px 0 6px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p { margin: 12px 0; }
a { color: #0366d6; }
img { max-width: 100%; height: auto; margin: 8px 0; border-radius: 4px; }
pre { background: #f6f8fa; padding: 14px 16px; border-radius: 6px; overflow-x: auto; font-size: 14px; line-height: 1.45; }
code { font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace; font-size: 90%; }
blockquote { border-left: 3px solid #ddd; padding-left: 14px; color: #666; margin: 12px 0; }
hr { border: none; border-top: 1px solid #eee; margin: 32px 0; }
.date { color: #888; font-size: 14px; }
.back { display: inline-block; margin-top: 40px; color: #555; font-size: 14px; }
.index-item { margin: 10px 0; }
.index-item .date { margin-right: 10px; white-space: nowrap; }
</style>
</head>
<body>
<header>
<a href="/">Blog</a>
</header>
<h1>Hello World</h1>
<div class="date">2020-03-15</div>
<p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very
first post. Check <a href="https://hexo.io/docs/">documentation</a> for
more info. If you get any problems when using Hexo, you can find the
answer in <a
href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or
you can ask me on <a
href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="quick-start">Quick Start</h2>
<h3 id="create-a-new-post">Create a new post</h3>
<div class="sourceCode" id="cb1"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> npx hexo new <span class="st">"My New Post"</span></span></code></pre></div>
<p>More info: <a
href="https://hexo.io/docs/writing.html">Writing</a></p>
<h3 id="run-server">Run server</h3>
<div class="sourceCode" id="cb2"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> npx hexo server</span></code></pre></div>
<p>More info: <a href="https://hexo.io/docs/server.html">Server</a></p>
<h3 id="generate-static-files">Generate static files</h3>
<div class="sourceCode" id="cb3"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> npx hexo generate</span></code></pre></div>
<p>More info: <a
href="https://hexo.io/docs/generating.html">Generating</a></p>
<h3 id="deploy-to-remote-sites">Deploy to remote sites</h3>
<div class="sourceCode" id="cb4"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> npx hexo deploy</span></code></pre></div>
<p>More info: <a
href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
<h3 id="save-the-posts">Save the posts</h3>
<pre><code>$ git push github master:hexo</code></pre>
<a class="back" href="/">← 返回</a>
</body>
</html>