Skip to content

Commit

Permalink
Site updated: 2018-05-04 18:07:06
Browse files Browse the repository at this point in the history
  • Loading branch information
ihoey committed May 4, 2018
1 parent f5a0f87 commit 755209a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion atom.xml

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions baidusitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@


<url>
<loc>https://blog.ihoey.com/posts/MongoDB/2017-03-23-mongodb.html</loc>
<loc>https://blog.ihoey.com/posts/MongoDB/2017-03-27-mongodb-ues.html</loc>
<lastmod>2018-05-04T10:02:23.000Z</lastmod>
<data>
<display>
<title>MongoDB安装笔记</title>
<pubTime>2017-03-23T08:25:11.000Z</pubTime>
<title>MongoDB学习笔记</title>
<pubTime>2017-03-27T07:07:03.000Z</pubTime>

<tag>MongoDB</tag>

Expand All @@ -276,12 +276,12 @@


<url>
<loc>https://blog.ihoey.com/posts/MongoDB/2017-03-27-mongodb-ues.html</loc>
<loc>https://blog.ihoey.com/posts/MongoDB/2017-03-23-mongodb.html</loc>
<lastmod>2018-05-04T10:02:23.000Z</lastmod>
<data>
<display>
<title>MongoDB学习笔记</title>
<pubTime>2017-03-27T07:07:03.000Z</pubTime>
<title>MongoDB安装笔记</title>
<pubTime>2017-03-23T08:25:11.000Z</pubTime>

<tag>MongoDB</tag>

Expand Down
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ pre .javascript .function {
width: 4px;
height: 4px;
border-radius: 50%;
background: #ffff94;
background: #ff604a;
}
.links-of-blogroll {
font-size: 13px;
Expand Down
2 changes: 1 addition & 1 deletion posts/Linux/2018-01-30-Hexo-NexT-Wildfire.html
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ <h2 class="post-title" itemprop="name headline">在Hexo博客 NexT主题中部
<h2 id="修改-NexT-评论模板"><a href="#修改-NexT-评论模板" class="headerlink" title="修改 NexT 评论模板"></a>修改 NexT 评论模板</h2><p>在你的博客项目中,打开./themes/next/layout/_partials/comments.swig 这个文件。<br>将文件尾部的内容:</p>
<div class="highlight-wrap"autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true"data-rel="HTML"><figure class="iseeu highlight /html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">&#123;% if page.comments %&#125;</span><br><span class="line"> <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"comments"</span> <span class="attr">id</span>=<span class="string">"comments"</span>&gt;</span></span><br><span class="line"> ...</span><br><span class="line"> ...</span><br><span class="line"> &#123;% elseif theme.livere_uid %&#125;</span><br><span class="line"> <span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"lv-container"</span> <span class="attr">data-id</span>=<span class="string">"city"</span> <span class="attr">data-uid</span>=<span class="string">"&#123;&#123; theme.livere_uid &#125;&#125;"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"> <span class="comment">&lt;!-- 添加内容的位置在这里 --&gt;</span></span><br><span class="line"> &#123;% endif %&#125;</span><br><span class="line"> <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line">&#123;% endif %&#125;</span><br></pre></td></tr></table></figure></div>
<p>修改为成下面的内容:</p>
<div class="highlight-wrap"autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true"data-rel="HTML"><figure class="iseeu highlight /html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><span class="line">&#123;% if page.comments %&#125;</span><br><span class="line"> <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"comments"</span> <span class="attr">id</span>=<span class="string">"comments"</span>&gt;</span></span><br><span class="line"> ...</span><br><span class="line"> ...</span><br><span class="line"> &#123;% elseif theme.livere_uid %&#125;</span><br><span class="line"> <span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"lv-container"</span> <span class="attr">data-id</span>=<span class="string">"city"</span> <span class="attr">data-uid</span>=<span class="string">"&#123;&#123; theme.livere_uid &#125;&#125;"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"> &#123;% elseif theme.wildfire.enable %&#125;</span><br><span class="line"> <span class="tag">&lt;<span class="name">style</span> <span class="attr">type</span>=<span class="string">"text/css"</span>&gt;</span><span class="undefined"></span></span><br><span class="line"><span class="undefined"> .wildfire_thread a &#123;border-bottom: none&#125;</span></span><br><span class="line"><span class="undefined"> </span><span class="tag">&lt;/<span class="name">style</span>&gt;</span></span><br><span class="line"> <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"wildfire_thread"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"> <span class="tag">&lt;<span class="name">script</span> <span class="attr">type</span>=<span class="string">"text/javascript"</span>&gt;</span><span class="undefined"></span></span><br><span class="line"><span class="undefined"> var wildfireConfig = () =&gt; (&#123;</span></span><br><span class="line"><span class="undefined"> databaseProvider: '&#123;&#123; theme.wildfire.database_provider &#125;&#125;',</span></span><br><span class="line"><span class="undefined"> databaseConfig: &#123;</span></span><br><span class="line"><span class="undefined"> &#123;% if (theme.wildfire.database_provider) === 'wilddog' %&#125;</span></span><br><span class="line"><span class="undefined"> siteId: '&#123;&#123; theme.wildfire.site_id &#125;&#125;'</span></span><br><span class="line"><span class="undefined"> &#123;% elseif (theme.wildfire.database_provider) === 'firebase' %&#125;</span></span><br><span class="line"><span class="undefined"> apiKey: '&#123;&#123; theme.wildfire.api_key &#125;&#125;',</span></span><br><span class="line"><span class="undefined"> authDomain: '&#123;&#123; theme.wildfire.auth_domain &#125;&#125;',</span></span><br><span class="line"><span class="undefined"> databaseURL: '&#123;&#123; theme.wildfire.database_url &#125;&#125;',</span></span><br><span class="line"><span class="undefined"> projectId: '&#123;&#123; theme.wildfire.project_id &#125;&#125;',</span></span><br><span class="line"><span class="undefined"> storageBucket: '&#123;&#123;theme.wildfire.storage_bucket&#125;&#125;',</span></span><br><span class="line"><span class="undefined"> messagingSenderId: '&#123;&#123;theme.wildfire.messaging_sender_id&#125;&#125;'</span></span><br><span class="line"><span class="undefined"> &#123;% endif %&#125;</span></span><br><span class="line"><span class="undefined"> &#125;,</span></span><br><span class="line"><span class="undefined"> theme: '&#123;&#123;theme.wildfire.theme&#125;&#125;',</span></span><br><span class="line"><span class="undefined"> locale: '&#123;&#123;theme.wildfire.locale&#125;&#125;'</span></span><br><span class="line"><span class="undefined"> &#125;)</span></span><br><span class="line"><span class="undefined"> </span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br><span class="line"> <span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">'https://unpkg.com/wildfire/dist/wildfire.auto.js'</span>&gt;</span><span class="undefined"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br><span class="line"> &#123;% endif %&#125;</span><br><span class="line"> <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line">&#123;% endif %&#125;</span><br></pre></td></tr></table></figure></div>
<div class="highlight-wrap"autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true"data-rel="HTML"><figure class="iseeu highlight /html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><span class="line">&#123;% if page.comments %&#125;</span><br><span class="line"> <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"comments"</span> <span class="attr">id</span>=<span class="string">"comments"</span>&gt;</span></span><br><span class="line"> ...</span><br><span class="line"> ...</span><br><span class="line"> &#123;% elseif theme.livere_uid %&#125;</span><br><span class="line"> <span class="tag">&lt;<span class="name">div</span> <span class="attr">id</span>=<span class="string">"lv-container"</span> <span class="attr">data-id</span>=<span class="string">"city"</span> <span class="attr">data-uid</span>=<span class="string">"&#123;&#123; theme.livere_uid &#125;&#125;"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"> &#123;% elseif theme.wildfire.enable %&#125;</span><br><span class="line"> <span class="tag">&lt;<span class="name">style</span> <span class="attr">type</span>=<span class="string">"text/css"</span>&gt;</span><span class="undefined"></span></span><br><span class="line"><span class="undefined"> .wildfire_thread a &#123;border-bottom: none&#125;</span></span><br><span class="line"><span class="undefined"> </span><span class="tag">&lt;/<span class="name">style</span>&gt;</span></span><br><span class="line"> <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">"wildfire_thread"</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"> <span class="tag">&lt;<span class="name">script</span> <span class="attr">type</span>=<span class="string">"text/javascript"</span>&gt;</span><span class="undefined"></span></span><br><span class="line"><span class="javascript"> <span class="keyword">var</span> wildfireConfig = <span class="function"><span class="params">()</span> =&gt;</span> (&#123;</span></span><br><span class="line"><span class="javascript"> databaseProvider: <span class="string">'&#123;&#123; theme.wildfire.database_provider &#125;&#125;'</span>,</span></span><br><span class="line"><span class="undefined"> databaseConfig: &#123;</span></span><br><span class="line"><span class="javascript"> &#123;% <span class="keyword">if</span> (theme.wildfire.database_provider) === <span class="string">'wilddog'</span> %&#125;</span></span><br><span class="line"><span class="javascript"> siteId: <span class="string">'&#123;&#123; theme.wildfire.site_id &#125;&#125;'</span></span></span><br><span class="line"><span class="javascript"> &#123;% elseif (theme.wildfire.database_provider) === <span class="string">'firebase'</span> %&#125;</span></span><br><span class="line"><span class="javascript"> apiKey: <span class="string">'&#123;&#123; theme.wildfire.api_key &#125;&#125;'</span>,</span></span><br><span class="line"><span class="javascript"> authDomain: <span class="string">'&#123;&#123; theme.wildfire.auth_domain &#125;&#125;'</span>,</span></span><br><span class="line"><span class="javascript"> databaseURL: <span class="string">'&#123;&#123; theme.wildfire.database_url &#125;&#125;'</span>,</span></span><br><span class="line"><span class="javascript"> projectId: <span class="string">'&#123;&#123; theme.wildfire.project_id &#125;&#125;'</span>,</span></span><br><span class="line"><span class="javascript"> storageBucket: <span class="string">'&#123;&#123;theme.wildfire.storage_bucket&#125;&#125;'</span>,</span></span><br><span class="line"><span class="javascript"> messagingSenderId: <span class="string">'&#123;&#123;theme.wildfire.messaging_sender_id&#125;&#125;'</span></span></span><br><span class="line"><span class="undefined"> &#123;% endif %&#125;</span></span><br><span class="line"><span class="undefined"> &#125;,</span></span><br><span class="line"><span class="javascript"> theme: <span class="string">'&#123;&#123;theme.wildfire.theme&#125;&#125;'</span>,</span></span><br><span class="line"><span class="javascript"> locale: <span class="string">'&#123;&#123;theme.wildfire.locale&#125;&#125;'</span></span></span><br><span class="line"><span class="undefined"> &#125;)</span></span><br><span class="line"><span class="undefined"> </span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br><span class="line"> <span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">'https://unpkg.com/wildfire/dist/wildfire.auto.js'</span>&gt;</span><span class="undefined"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br><span class="line"> &#123;% endif %&#125;</span><br><span class="line"> <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line">&#123;% endif %&#125;</span><br></pre></td></tr></table></figure></div>
<p>然后保存。</p>
<h2 id="增加设置内容"><a href="#增加设置内容" class="headerlink" title="增加设置内容"></a>增加设置内容</h2><p>打开主题设置文件 <code>./themes/next/_config.yml</code>,注意:不是站点设置文件。<br>将下面的代码复制到合适的位置(包含全部注释):</p>
<div class="highlight-wrap"autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" contenteditable="true"data-rel="YAML"><figure class="iseeu highlight /yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Wildfire Support</span></span><br><span class="line"><span class="attr">wildfire:</span></span><br><span class="line"> <span class="comment">## 开启Wildfire支持</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"> <span class="comment">## 主题颜色,目前可选值为light/dark两种,默认为light</span></span><br><span class="line"><span class="attr"> theme:</span> <span class="string">light</span></span><br><span class="line"> <span class="comment">## 系统语言,目前可选值为en/zh-CN两种,默认为en</span></span><br><span class="line"><span class="attr"> locale:</span> <span class="string">zh-CN</span></span><br><span class="line"> <span class="comment">## Wilddog配置</span></span><br><span class="line"><span class="attr"> database_provider:</span> <span class="string">wilddog</span></span><br><span class="line"><span class="attr"> site_id:</span> <span class="string">site_id</span></span><br><span class="line"><span class="attr"> avatarURL:</span> <span class="attr">https://image.flaticon.com/icons/svg/621/621863.svg</span></span><br><span class="line"> <span class="comment">## Firebase配置</span></span><br><span class="line"> <span class="comment"># database_provider: firebase</span></span><br><span class="line"> <span class="comment"># api_key: apiKey</span></span><br><span class="line"> <span class="comment"># auth_domain: authDomain</span></span><br><span class="line"> <span class="comment"># database_url: databaseURL</span></span><br><span class="line"> <span class="comment"># project_id: projectId</span></span><br><span class="line"> <span class="comment"># storage_bucket: storageBucket</span></span><br><span class="line"> <span class="comment"># messaging_sender_id: messagingSenderId</span></span><br></pre></td></tr></table></figure></div>
Expand Down
4 changes: 2 additions & 2 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@
</url>

<url>
<loc>https://blog.ihoey.com/posts/MongoDB/2017-03-23-mongodb.html</loc>
<loc>https://blog.ihoey.com/posts/MongoDB/2017-03-27-mongodb-ues.html</loc>

<lastmod>2018-05-04T10:02:23.000Z</lastmod>

</url>

<url>
<loc>https://blog.ihoey.com/posts/MongoDB/2017-03-27-mongodb-ues.html</loc>
<loc>https://blog.ihoey.com/posts/MongoDB/2017-03-23-mongodb.html</loc>

<lastmod>2018-05-04T10:02:23.000Z</lastmod>

Expand Down

0 comments on commit 755209a

Please sign in to comment.