Permalink
Browse files

增加评论和搜索功能

  • Loading branch information...
shellvon committed Dec 1, 2017
1 parent 78698ec commit dd8ba0433e0b610a661e84669efdaf129be2bb31
@@ -14,6 +14,13 @@







<script src="/lib/pace/pace.min.js?v=1.0.2"></script>
<link href="/lib/pace/pace-theme-minimal.min.css?v=1.0.2" rel="stylesheet">




@@ -83,17 +90,17 @@
<meta name="keywords" content="Regex,文本处理">
<meta property="og:type" content="article">
<meta property="og:title" content="30分钟学正则">
<meta property="og:url" content="http://yoursite.com/2017/11/29/learn-regex-in-30-minutes/index.html">
<meta property="og:url" content="http://von.sh/2017/11/29/learn-regex-in-30-minutes/index.html">
<meta property="og:site_name" content="shellvon的博客">
<meta property="og:description" content="有一些人,遇到一个问题时就想:“我知道,我会使用正则表达式。” 然后他就有两个问题了。–by Jamie Zawinski">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://yoursite.com/assets/img/ipv4-regex.svg">
<meta property="og:image" content="http://yoursite.com/assets/img/regex101.png">
<meta property="og:image" content="http://von.sh/assets/img/ipv4-regex.svg">
<meta property="og:image" content="http://von.sh/assets/img/regex101.png">
<meta property="og:updated_time" content="2017-11-30T09:54:07.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="30分钟学正则">
<meta name="twitter:description" content="有一些人,遇到一个问题时就想:“我知道,我会使用正则表达式。” 然后他就有两个问题了。–by Jamie Zawinski">
<meta name="twitter:image" content="http://yoursite.com/assets/img/ipv4-regex.svg">
<meta name="twitter:image" content="http://von.sh/assets/img/ipv4-regex.svg">



@@ -103,7 +110,7 @@
root: '/',
scheme: 'Pisces',
version: '5.1.3',
sidebar: {"position":"left","display":"hide","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
sidebar: {"position":"left","display":"hide","offset":12,"b2t":false,"scrollpercent":true,"onmobile":false},
fancybox: true,
tabs: true,
motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
@@ -112,18 +119,18 @@
author: '博主'
},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
applicationID: 'XTTY5R68BV',
apiKey: '28b572f0f162a057439f018c40e8034f',
indexName: 'prod_von_post',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
labels: {"input_placeholder":"搜索你要的文章","hits_empty":"很遗憾,没有找到: ${query}","hits_stats":"找到 ${hits} 条记录,耗时 ${time} ms"}
}
};
</script>



<link rel="canonical" href="http://yoursite.com/2017/11/29/learn-regex-in-30-minutes/"/>
<link rel="canonical" href="http://von.sh/2017/11/29/learn-regex-in-30-minutes/"/>



@@ -235,10 +242,48 @@



<li class="menu-item menu-item-search">

<a href="javascript:;" class="popup-trigger">


<i class="menu-item-icon fa fa-search fa-fw"></i> <br />

搜索
</a>
</li>

</ul>



<div class="site-search">


<div class="algolia-popup popup search-popup">
<div class="algolia-search">
<div class="algolia-search-input-icon">
<i class="fa fa-search"></i>
</div>
<div class="algolia-search-input" id="algolia-search-input"></div>
</div>

<div class="algolia-results">
<div id="algolia-stats"></div>
<div id="algolia-hits"></div>
<div id="algolia-pagination" class="algolia-pagination"></div>
</div>

<span class="popup-btn-close">
<i class="fa fa-times-circle"></i>
</span>
</div>




</div>

</nav>


@@ -266,7 +311,7 @@


<div class="post-block">
<link itemprop="mainEntityOfPage" href="http://yoursite.com/2017/11/29/learn-regex-in-30-minutes/">
<link itemprop="mainEntityOfPage" href="http://von.sh/2017/11/29/learn-regex-in-30-minutes/">

<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="shellvon">
@@ -700,6 +745,10 @@ <h1 id="参考资料"><a href="#参考资料" class="headerlink" title="参考



<div class="comments" id="comments">
<div id="lv-container" data-id="city" data-uid="MTAyMC8zMjA5Mi84NjU2"></div>
</div>



</div>
@@ -867,11 +916,7 @@ <h1 id="参考资料"><a href="#参考资料" class="headerlink" title="参考



<span class="post-meta-divider">|</span>



<div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.3</div>



@@ -901,6 +946,8 @@ <h1 id="参考资料"><a href="#参考资料" class="headerlink" title="参考
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>

<span id="scrollpercent"><span>0</span>%</span>

</div>


@@ -1006,6 +1053,17 @@ <h1 id="参考资料"><a href="#参考资料" class="headerlink" title="参考




<script type="text/javascript">
(function(d, s) {
var j, e = d.getElementsByTagName(s)[0];
if (typeof LivereTower === 'function') { return; }
j = d.createElement(s);
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
j.async = true;
e.parentNode.insertBefore(j, e);
})(document, 'script');
</script>



@@ -1020,6 +1078,19 @@ <h1 id="参考资料"><a href="#参考资料" class="headerlink" title="参考






<link rel="stylesheet" href="/lib/algolia-instant-search/instantsearch.min.css">



<script src="/lib/algolia-instant-search/instantsearch.min.js"></script>


<script src="/js/src/algolia-search.js?v=5.1.3"></script>





@@ -14,6 +14,13 @@







<script src="/lib/pace/pace.min.js?v=1.0.2"></script>
<link href="/lib/pace/pace-theme-minimal.min.css?v=1.0.2" rel="stylesheet">




@@ -83,16 +90,16 @@
<meta name="keywords" content="程序员,工程师,Coder,Python,PHP">
<meta property="og:type" content="website">
<meta property="og:title" content="关于我">
<meta property="og:url" content="http://yoursite.com/about/index.html">
<meta property="og:url" content="http://von.sh/about/index.html">
<meta property="og:site_name" content="shellvon的博客">
<meta property="og:description" content="这是我第X次尝试写博客了。希望我能坚持下去。">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://yoursite.com/assets/img/uphold.jpg">
<meta property="og:image" content="http://von.sh/assets/img/uphold.jpg">
<meta property="og:updated_time" content="2017-11-30T09:39:17.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="关于我">
<meta name="twitter:description" content="这是我第X次尝试写博客了。希望我能坚持下去。">
<meta name="twitter:image" content="http://yoursite.com/assets/img/uphold.jpg">
<meta name="twitter:image" content="http://von.sh/assets/img/uphold.jpg">



@@ -102,7 +109,7 @@
root: '/',
scheme: 'Pisces',
version: '5.1.3',
sidebar: {"position":"left","display":"hide","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
sidebar: {"position":"left","display":"hide","offset":12,"b2t":false,"scrollpercent":true,"onmobile":false},
fancybox: true,
tabs: true,
motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
@@ -111,18 +118,18 @@
author: '博主'
},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
applicationID: 'XTTY5R68BV',
apiKey: '28b572f0f162a057439f018c40e8034f',
indexName: 'prod_von_post',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
labels: {"input_placeholder":"搜索你要的文章","hits_empty":"很遗憾,没有找到: ${query}","hits_stats":"找到 ${hits} 条记录,耗时 ${time} ms"}
}
};
</script>



<link rel="canonical" href="http://yoursite.com/about/"/>
<link rel="canonical" href="http://von.sh/about/"/>



@@ -234,10 +241,48 @@



<li class="menu-item menu-item-search">

<a href="javascript:;" class="popup-trigger">


<i class="menu-item-icon fa fa-search fa-fw"></i> <br />

搜索
</a>
</li>

</ul>



<div class="site-search">


<div class="algolia-popup popup search-popup">
<div class="algolia-search">
<div class="algolia-search-input-icon">
<i class="fa fa-search"></i>
</div>
<div class="algolia-search-input" id="algolia-search-input"></div>
</div>

<div class="algolia-results">
<div id="algolia-stats"></div>
<div id="algolia-hits"></div>
<div id="algolia-pagination" class="algolia-pagination"></div>
</div>

<span class="popup-btn-close">
<i class="fa fa-times-circle"></i>
</span>
</div>




</div>

</nav>


@@ -291,6 +336,10 @@ <h1 class="post-title" itemprop="name headline">关于我</h1>



<div class="comments" id="comments">
<div id="lv-container" data-id="city" data-uid="MTAyMC8zMjA5Mi84NjU2"></div>
</div>



</div>
@@ -433,13 +482,9 @@ <h1 class="post-title" itemprop="name headline">关于我</h1>



<span class="post-meta-divider">|</span>



<div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.3</div>





@@ -467,6 +512,8 @@ <h1 class="post-title" itemprop="name headline">关于我</h1>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>

<span id="scrollpercent"><span>0</span>%</span>

</div>


@@ -572,6 +619,17 @@ <h1 class="post-title" itemprop="name headline">关于我</h1>




<script type="text/javascript">
(function(d, s) {
var j, e = d.getElementsByTagName(s)[0];
if (typeof LivereTower === 'function') { return; }
j = d.createElement(s);
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
j.async = true;
e.parentNode.insertBefore(j, e);
})(document, 'script');
</script>



@@ -586,6 +644,19 @@ <h1 class="post-title" itemprop="name headline">关于我</h1>






<link rel="stylesheet" href="/lib/algolia-instant-search/instantsearch.min.css">



<script src="/lib/algolia-instant-search/instantsearch.min.js"></script>


<script src="/js/src/algolia-search.js?v=5.1.3"></script>





Oops, something went wrong.

0 comments on commit dd8ba04

Please sign in to comment.