Permalink
Browse files

feat: Baidu search 百度站内搜索

微搜索太慢,Swiftype 和主题有冲突,而且这两家中文搜索质量不敢恭维,换用百度
  • Loading branch information...
MOxFIVE committed Oct 4, 2015
1 parent cdbe097 commit 7c9c5dd8b60a072eb1d8392e4e7f61df3992b165
@@ -27,11 +27,4 @@
<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
<script type="text/javascript">
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
_st('install','RZeSBfZhk-Q6N-B9zght','2.0.0');
</script>
<%- partial('baidu-search') %>
@@ -0,0 +1 @@
<script type="text/javascript">(function(){document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E'));var bdcs = document.createElement('script');bdcs.type = 'text/javascript';bdcs.async = true;bdcs.src = 'http://znsv.baidu.com/customer_search/api/js?sid=18240140946075612580' + '&plate_url=' + encodeURIComponent(window.location.href) + '&t=' + Math.ceil(new Date()/3600000);var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(bdcs, s);})();</script>
@@ -15,7 +15,9 @@
<% if (theme.subtitle){ %>
<p class="header-subtitle"><%=theme.subtitle%></p>
<%}%>
<input type="text" class="st-default-search-input" id="search" placeholder=" Search...">
<form>
<input type="text" id="bdcsMain" class="search" placeholder=" Search..."></form>
<script type="text/javascript">(function(){document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E'));var bdcs = document.createElement('script');bdcs.type = 'text/javascript';bdcs.async = true;bdcs.src = 'http://znsv.baidu.com/customer_search/api/js?sid=18240140946075612580' + '&plate_url=' + encodeURIComponent(window.location.href) + '&t=' + Math.ceil(new Date()/3600000);var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(bdcs, s);})();</script>
<%if(theme.tagcloud){%>
<div class="switch-btn">
<div class="icon">

0 comments on commit 7c9c5dd

Please sign in to comment.