Permalink
Browse files

feat: Swiftype search 改用 Swiftype

Tinysou is too slow…

https://swiftype.com/
  • Loading branch information...
MOxFIVE committed Oct 3, 2015
1 parent e65cb5b commit c3bd88d7579f8fd5ae7af787de08d7e648c255e0
@@ -27,20 +27,11 @@
<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');
<script>
var option = {
engineKey: '990f4c9c13b06ab1d082'
};
(function(w,d,t,u,n,s,e){
s = d.createElement(t);
s.src = u;
s.async = 1;
w[n] = function(r){
w[n].opts = r;
};
e = d.getElementsByTagName(t)[0];
e.parentNode.insertBefore(s, e);
})(window,document,'script','//tinysou-cdn.b0.upaiyun.com/ts.js','_ts');
_ts(option);
_st('install','RZeSBfZhk-Q6N-B9zght','2.0.0');
</script>
@@ -15,7 +15,7 @@
<% if (theme.subtitle){ %>
<p class="header-subtitle"><%=theme.subtitle%></p>
<%}%>
<form><input type="text" id="ts-search-input" class="search" placeholder=" Search"></form>
<input type="text" class="st-default-search-input" id="search" placeholder=" Search...">
<%if(theme.tagcloud){%>
<div class="switch-btn">
<div class="icon">
@@ -315,9 +315,8 @@
padding: 0 40px;
}
.search {
#search {
padding: 0;
margin-top: 1px;
font-family: inherit;
border:2px solid white;
@@ -326,6 +325,7 @@
width: 68%;
opacity: .2;
height: 18px;
background: none;
&:hover {
opacity: 1;
border: 2px solid lightgray;

0 comments on commit c3bd88d

Please sign in to comment.