Skip to content

Commit ccf64fc

Browse files
committedSep 1, 2019
Site updated: 2019-09-01 18:09:15
1 parent fea28bf commit ccf64fc

File tree

12 files changed

+1019
-266
lines changed

12 files changed

+1019
-266
lines changed
 

‎2019/08/30/第一个博客/index.html

+33-37
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<meta property="og:url" content="http://yoursite.com/2019/08/30/第一个博客/index.html">
1515
<meta property="og:site_name" content="博客吧">
1616
<meta property="og:description" content="Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick">
17-
<meta property="og:locale" content="default">
17+
<meta property="og:locale" content="zh">
1818
<meta property="og:updated_time" content="2019-09-01T08:36:59.712Z">
1919
<meta name="twitter:card" content="summary">
2020
<meta name="twitter:title" content="Hello World(can be )">
@@ -26,10 +26,8 @@
2626
<link rel="icon" href="/favicon.png">
2727

2828

29-
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
30-
3129
<link rel="stylesheet" href="/css/style.css">
32-
</head>
30+
<link rel="stylesheet" href="/css/prism-tomorrow.css" type="text/css"></head>
3331
</html>
3432
<body>
3533
<div id="container">
@@ -93,23 +91,19 @@ <h1 class="article-title" itemprop="name">
9391
<div class="article-entry" itemprop="articleBody">
9492

9593
<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">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" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p>
96-
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
97-
94+
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><pre class=" language-bash"><code class="language-bash">$ hexo new <span class="token string">"My New Post"</span></code></pre>
9895
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p>
99-
<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><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
100-
96+
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><pre class=" language-bash"><code class="language-bash">$ hexo server</code></pre>
10197
<p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p>
102-
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
103-
98+
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><pre class=" language-bash"><code class="language-bash">$ hexo generate</code></pre>
10499
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p>
105-
<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><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
106-
100+
<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><pre class=" language-bash"><code class="language-bash">$ hexo deploy</code></pre>
107101
<p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="noopener">Deployment</a></p>
108102

109103

110104
</div>
111105
<footer class="article-footer">
112-
<a data-url="http://yoursite.com/2019/08/30/第一个博客/" data-id="ck00qf8ya0001q8w3ktjsu716" class="article-share-link">Share</a>
106+
<a data-url="http://yoursite.com/2019/08/30/第一个博客/" data-id="ck00tbz6j000138w3uol76sbg" class="article-share-link">Share</a>
113107

114108

115109
</footer>
@@ -118,7 +112,7 @@ <h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerl
118112

119113
<nav id="article-nav">
120114

121-
<a href="/2019/09/01/理解互联网协议/" id="article-nav-newer" class="article-nav-link-wrap">
115+
<a href="/2019/09/02/理解互联网协议/" id="article-nav-newer" class="article-nav-link-wrap">
122116
<strong class="article-nav-caption">Newer</strong>
123117
<div class="article-nav-title">
124118

@@ -162,7 +156,7 @@ <h3 class="widget-title">Recent Posts</h3>
162156
<ul>
163157

164158
<li>
165-
<a href="/2019/09/01/理解互联网协议/">理解互联网协议</a>
159+
<a href="/2019/09/02/理解互联网协议/">理解互联网协议</a>
166160
</li>
167161

168162
<li>
@@ -189,28 +183,30 @@ <h3 class="widget-title">Recent Posts</h3>
189183
</footer>
190184
<script language=javascript>
191185
function siteTime() {
192-
window.setTimeout("siteTime()", 1000);
193-
var seconds = 1000;
194-
var minutes = seconds * 60;
195-
var hours = minutes * 60;
196-
var days = hours * 24;
197-
var years = days * 365;
198-
var today = new Date();
199-
var todayYear = today.getFullYear();
200-
var todayMonth = today.getMonth() + 1;
201-
var todayDate = today.getDate();
202-
var todayHour = today.getHours();
203-
var todayMinute = today.getMinutes();
204-
var todaySecond = today.getSeconds(); /* Date.UTC() -- 返回date对象距世界标准时间(UTC)1970年1月1日午夜之间的毫秒数(时间戳) year - 作为date对象的年份,为4位年份值 month - 0-11之间的整数,做为date对象的月份 day - 1-31之间的整数,做为date对象的天数 hours - 0(午夜24点)-23之间的整数,做为date对象的小时数 minutes - 0-59之间的整数,做为date对象的分钟数 seconds - 0-59之间的整数,做为date对象的秒数 microseconds - 0-999之间的整数,做为date对象的毫秒数 */
205-
var t1 = Date.UTC(2019, 08, 30, 23, 00, 00); //北京时间2019-8-30 23:00:00
206-
var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
207-
var diff = t2 - t1;
208-
var diffYears = Math.floor(diff / years);
209-
var diffDays = Math.floor((diff / days) - diffYears * 365); var diffHours = Math.floor((diff - (diffYears * 365 + diffDays) * days) / hours);
210-
var diffMinutes = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours) / minutes);
211-
var diffSeconds = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours - diffMinutes * minutes) / seconds); document.getElementById("sitetime").innerHTML = "本站已运行 " +diffYears+" 年 "+diffDays + " 天 " + diffHours + " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
212-
}/*因为建站时间还没有一年,就将之注释掉了。需要的可以取消*/
213-
siteTime();
186+
window.setTimeout("siteTime()", 1000);
187+
var seconds = 1000;
188+
var minutes = seconds * 60;
189+
var hours = minutes * 60;
190+
var days = hours * 24;
191+
var years = days * 365;
192+
var today = new Date();
193+
var todayYear = today.getFullYear();
194+
var todayMonth = today.getMonth() + 1;
195+
var todayDate = today.getDate();
196+
var todayHour = today.getHours();
197+
var todayMinute = today.getMinutes();
198+
var todaySecond = today.getSeconds(); /* Date.UTC() -- 返回date对象距世界标准时间(UTC)1970年1月1日午夜之间的毫秒数(时间戳) year - 作为date对象的年份,为4位年份值 month - 0-11之间的整数,做为date对象的月份 day - 1-31之间的整数,做为date对象的天数 hours - 0(午夜24点)-23之间的整数,做为date对象的小时数 minutes - 0-59之间的整数,做为date对象的分钟数 seconds - 0-59之间的整数,做为date对象的秒数 microseconds - 0-999之间的整数,做为date对象的毫秒数 */
199+
var t1 = Date.UTC(2019, 08, 29, 23, 00, 00); //北京时间2019-8-30 23:00:00
200+
var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
201+
var diff = t2 - t1;
202+
var diffYears = Math.floor(diff / years);
203+
var diffDays = Math.floor((diff / days) - diffYears * 365);
204+
var diffHours = Math.floor((diff - (diffYears * 365 + diffDays) * days) / hours);
205+
var diffMinutes = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours) / minutes);
206+
var diffSeconds = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours - diffMinutes * minutes) / seconds);
207+
document.getElementById("sitetime").innerHTML = "本站已运行 " +diffYears+" 年 "+diffDays + " 天 " + diffHours + " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
208+
}/*因为建站时间还没有一年,就将之注释掉了。需要的可以取消*/
209+
siteTime();
214210
</script>
215211
</div>
216212
<nav id="mobile-nav">

0 commit comments

Comments
 (0)
Please sign in to comment.