-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hexo.html
88 lines (86 loc) · 18.5 KB
/
Hexo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- common.css -->
<style>* {-webkit-tap-highlight-color: rgba(0,0,0,0);}html {-webkit-text-size-adjust: none;}body {font-family: -apple-system, Helvetica, Arial, sans-serif;margin: 0;padding: 20px;color: #333;word-wrap: break-word;}h1, h2, h3, h4, h5, h6 {line-height: 1.1;}img {max-width: 100% !important;height: auto;}blockquote {margin: 0;padding: 0 15px;color: #777;border-left: 4px solid #ddd;}hr {background-color: #ddd;border: 0;height: 1px;margin: 15px 0;}code {font-family: Menlo, Consolas, 'Ubuntu Mono', Monaco, 'source-code-pro', monospace;line-height: 1.4;margin: 0;padding: 0.2em 0;font-size: 90%;background-color: rgba(0,0,0,0.04);border-radius: 3px;}pre > code {margin: 0;padding: 0;font-size: 100%;word-break: normal;background: transparent;border: 0;}ol {list-style-type: decimal;}ol ol, ul ol {list-style-type: lower-latin;}ol ol ol, ul ol ol, ul ul ol, ol ul ol {list-style-type: lower-roman;}table {border-spacing: 0;border-collapse: collapse;margin-top: 0;margin-bottom: 16px;}table th {font-weight: bold;}table th, table td {padding: 6px 13px;border: 1px solid #ddd;}table tr {border-top: 1px solid #ccc;}table tr:nth-child(even) {background-color: #f8f8f8;}input[type="checkbox"] {cursor: default;margin-right: 0.5em;font-size: 13px;}.task-list-item {list-style-type: none;}.task-list-item+.task-list-item {margin-top: 3px;}.task-list-item input {float: left;margin: 0.3em 1em 0.25em -1.6em;vertical-align: middle;}#tag-field {margin: 8px 2px 10px;}#tag-field .tag {display: inline-block;background: #cadff3;border-radius: 4px;padding: 1px 8px;color: black;font-size: 12px;margin-right: 10px;line-height: 1.4;}</style>
<!-- ace-static.css -->
<style>.ace_static_highlight {white-space: pre-wrap;}.ace_static_highlight .ace_gutter {width: 2em;text-align: right;padding: 0 3px 0 0;margin-right: 3px;}.ace_static_highlight.ace_show_gutter > .ace_line {padding-left: 2.6em;}.ace_static_highlight .ace_line {position: relative;}.ace_static_highlight .ace_gutter-cell {-moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none;top: 0;bottom: 0;left: 0;position: absolute;}.ace_static_highlight .ace_gutter-cell:before {content: counter(ace_line, decimal);counter-increment: ace_line;}.ace_static_highlight {counter-reset: ace_line;}</style>
<style>.ace-chrome .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-chrome .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-chrome {background-color: #FFFFFF;color: black;}.ace-chrome .ace_cursor {color: black;}.ace-chrome .ace_invisible {color: rgb(191, 191, 191);}.ace-chrome .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-chrome .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-chrome .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-chrome .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-chrome .ace_fold {}.ace-chrome .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-chrome .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-chrome .ace_support.ace_type,.ace-chrome .ace_support.ace_class.ace-chrome .ace_support.ace_other {color: rgb(109, 121, 222);}.ace-chrome .ace_variable.ace_parameter {font-style:italic;color:#FD971F;}.ace-chrome .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-chrome .ace_comment {color: #236e24;}.ace-chrome .ace_comment.ace_doc {color: #236e24;}.ace-chrome .ace_comment.ace_doc.ace_tag {color: #236e24;}.ace-chrome .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-chrome .ace_variable {color: rgb(49, 132, 149);}.ace-chrome .ace_xml-pe {color: rgb(104, 104, 91);}.ace-chrome .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-chrome .ace_heading {color: rgb(12, 7, 255);}.ace-chrome .ace_list {color:rgb(185, 6, 144);}.ace-chrome .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-chrome .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-chrome .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-chrome .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-chrome .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-chrome .ace_gutter-active-line {background-color : #dcdcdc;}.ace-chrome .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-chrome .ace_storage,.ace-chrome .ace_keyword,.ace-chrome .ace_meta.ace_tag {color: rgb(147, 15, 128);}.ace-chrome .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-chrome .ace_string {color: #1A1AA6;}.ace-chrome .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-chrome .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}</style>
<!-- export.css -->
<style>
body{margin:0 auto;max-width:800px;line-height:1.4}
#nav{margin:5px 0 10px;font-size:15px}
#titlearea{border-bottom:1px solid #ccc;font-size:17px;padding:10px 0;}
#contentarea{font-size:15px;margin:16px 0}
.cell{outline:0;min-height:20px;margin:5px 0;padding:5px 0;}
.code-cell{font-family:Menlo,Consolas,'Ubuntu Mono',Monaco,'source-code-pro',monospace;font-size:12px;}
.latex-cell{white-space:pre-wrap;}
</style>
<!-- User CSS -->
<style> .text-cell {font-size: 15px;}.code-cell {font-size: 12px;}.markdown-cell {font-size: 15px;}.latex-cell {font-size: 15px;}</style>
</head>
<body>
<div id="nav"><div>Next: <a href='AWS.html'>AWS</a>, Previous: <a href='R.html'>R</a>, Up: <a href='index.html'>Index</a></div></div>
<div id="titlearea">
<h2>Hexo</h2>
</div>
<div id="contentarea"><div class="cell text-cell"><div><p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">Tips-Hexo</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">可以尝试将</span> source/css/_common/scaffolding/tables.styl <span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">中的</span> table-layout: fixed;</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">改为</span> table-layout: auto;</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><br> <span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">表格内换行</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(228, 175, 10);"><span style="text-decoration: underline"><a href="http://moxfive.xyz/2016/03/04/markdown-table-style/">Markdown <span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">表格样式调整与自适应优化</span> | MOxFIVE's Blog</a></span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 15px;"><b></b><br></p>
<p style="margin: 0px 0px 2px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: ".PingFang SC"; color: rgb(69, 69, 69);">在<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";">html</span>前加入,即可不编译</p>
<p style="margin: 0px 0px 2px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><b>---</b></p>
<p style="margin: 0px 0px 2px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><b>layout: false</b></p>
<p style="margin: 0px 0px 2px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><b>---</b></p>
<p style="margin: 0px 0px 2px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 17px;"><b></b><br></p>
<p style="margin: 0px 0px 2px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: ".PingFang SC"; color: rgb(69, 69, 69);">关于引用站内文章的链接,可以使用以下语法:</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">{% post_link markdown-learning-by-maxiang <span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">点击这里查看这篇文章</span> %}</p>
<ul>
<li style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><span style="font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;"></span>markdown-learning-by-maxiang<span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">是你的文章名称。如果文章不存在,这段代码将会被直接忽略。</span></li>
<li style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: ".PingFang SC"; color: rgb(69, 69, 69);"><span style="font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;"></span>点击这里查看这篇文章是该链接的标题。如果置空,则自动提取文章的标题。</li>
</ul>
<p style="margin: 0px 0px 2px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: ".PingFang SC"; color: rgb(69, 69, 69);"><span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";"><b>ps</b></span>:这个功能跟主题无关。</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">type: "picture"</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">---</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">{% gp 4-3 %}</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">![](http://oapjp6spr.bkt.clouddn.com/18210.jpg)</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">{% endgp %}</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(228, 175, 10);"><a href="http://caoyudong.com/2015/07/15/%E5%A6%82%E4%BD%95%E8%AE%A9markdown%E5%9B%BE%E7%89%87%E5%B1%85%E4%B8%AD/">http://caoyudong.com/2015/07/15/%E5%A6%82%E4%BD%95%E8%AE%A9markdown%E5%9B%BE%E7%89%87%E5%B1%85%E4%B8%AD/</a></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">Markdown <span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">图片居中</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">blog about the config of my laptop, assume I bought a new macbook</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><img src="resources/BCDBBDDBC5FBBD8CE8F16E529FAED8A2.jpg" alt="Pasted Graphic.tiff" width="712" height="181"></p>
<p style="margin: 0px 0px 2px; text-align: justify; font-stretch: normal; font-size: 14px; line-height: normal; font-family: ".PingFang SC"; color: rgb(69, 69, 69);">草稿</p>
<p style="margin: 0px; text-align: justify; font-stretch: normal; font-size: 12px; line-height: normal; font-family: ".PingFang SC"; color: rgb(69, 69, 69);">草稿相当于很多博客都有的<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";">“</span>私密文章<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";">”</span>功能。使用如下命令创建:<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";"><br>
</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">$ hexo new draft "new draft"</p>
<p style="margin: 0px; text-align: justify; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; text-align: justify; font-stretch: normal; font-size: 12px; line-height: normal; font-family: ".PingFang SC"; color: rgb(69, 69, 69);">会在<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";">source/_drafts</span>目录下生成一个<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";">new-draft.md</span>文件。但是这个文件不被显示在页面上,链接也访问不到。也就是说如果你想把某一篇文章移除显示,又不舍得删除,可以把它移动到<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";">_drafts</span>目录之中。</p>
<p style="margin: 0px; text-align: justify; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);"><span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">如果你希望强行预览草稿,更改配置文件(</span>_config.yml<span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">):</span><br>
$ render_drafts: true<br>
<span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">或者如下方式启动</span>server<span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC";">:</span><br>
$ hexo server --drafts</p>
<p style="margin: 0px; text-align: justify; font-stretch: normal; font-size: 12px; line-height: normal; font-family: ".PingFang SC"; color: rgb(69, 69, 69);">下面这条命令可以把草稿变成文章,或者页面:<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";"><br>
</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">$ hexo publish draft "draft name"</p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;"><br></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(228, 175, 10);"><span style="font-stretch: normal; line-height: normal; font-family: ".PingFang SC"; text-decoration: underline;"><a href="http://blog.leanote.com/post/friendley/%E5%9C%A8hexo%E4%B8%AD%E4%BD%BF%E7%94%A8%E8%8D%89%E7%A8%BF">在<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";">hexo</span>中使用草稿<span style="font-stretch: normal; line-height: normal; font-family: "Helvetica Neue";">-friendley 's Blog</span></a></span></p></div><div><br></div></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div><div class="cell text-cell"></div></div>
<script>document.body.onkeyup = function(e) {
if (e.keyCode === 39) window.location.href = 'AWS.html';
if (e.keyCode === 37) window.location.href = 'R.html';
}</script>
</body>
</html>