Permalink
Browse files

feat: tinysou search 微搜索

Add search function via tinysou.
增加微搜索模块,实现站内搜索。

http://tinysou.com/
  • Loading branch information...
MOxFIVE committed Oct 1, 2015
1 parent a02f455 commit aa9cf1b75f409690f0e9af5d259698a6b2e851a7
View
5 package.json 100755 → 100644
@@ -10,10 +10,11 @@
"hexo-generator-archive": "^0.1.2",
"hexo-generator-category": "^0.1.2",
"hexo-generator-index": "^0.1.2",
"hexo-generator-sitemap": "^1.0.1",
"hexo-generator-tag": "^0.1.1",
"hexo-renderer-ejs": "^0.1.0",
"hexo-renderer-stylus": "^0.3.0",
"hexo-renderer-marked": "^0.2.4",
"hexo-renderer-stylus": "^0.3.0",
"hexo-server": "^0.1.2"
}
}
}
@@ -26,4 +26,21 @@
<% } %>
<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
<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);
</script>
View
@@ -12,11 +12,10 @@
<hgroup>
<h1 class="header-author"><a href="/" title="回到主页"><%=theme.author%></a></h1>
</hgroup>
<% if (theme.subtitle){ %>
<p class="header-subtitle"><%=theme.subtitle%></p>
<%}%>
<form><input type="text" id="ts-search-input" class="search" placeholder=" Search…"></form>
<%if(theme.tagcloud){%>
<div class="switch-btn">
<div class="icon">
@@ -58,7 +57,6 @@
</div>
</div>
<%}%>
<div class="switch-area">
<div class="switch-wrap">
<section class="switch-part switch-part1">
@@ -107,5 +105,5 @@
<%}%>
</div>
</div>
</header>
</header>
</div>
@@ -411,7 +411,7 @@ body {
#tocButton {
position: fixed;
left: 220px;
top: 385px;
top: 382px;
background: white;
font-size: .9em;
font-weight: bold;
@@ -432,10 +432,10 @@ body {
background: #fff;
border-radius: 2.8%;
margin-left: 0em;
padding: 10px;
padding-left: 50px
padding: 6px 10px 10px 50px;
width: 230px;
top:375px;
top:378px;
bottom: 1em;
overflow: auto;
}
View
@@ -78,7 +78,7 @@
}
.header-author{
text-align: center;
margin: 0.67em 0;
margin: 13px 0;
font-family: Roboto, "Roboto", serif;
font-size: 30px;
transition: 0.3s;
@@ -137,12 +137,13 @@
-webkit-box-orient: vertical;
}
.header-menu{
font-weight: 300;
line-height: 31px;
font-weight: 550;
line-height: 28px;
font-family: inherit;
cursor: pointer;
text-transform: uppercase;
float:none;
height: 150px;
height: 140px;
margin-left: -12px;
text-align: center;
display: -webkit-box;
@@ -312,4 +313,30 @@
#disqus_thread{
padding: 0 40px;
}
.search {
display: none;
margin-top: 1px;
font-family: inherit;
border: 2px solid lightgray;
border-radius: 2px;
width: 68%;
opacity: .4;
height: 18px;
&:hover {
opacity: 1;
};
}
.inner:hover {
.search {
display: inline;
};
.switch-btn {
margin-top: 0px;
}
#toc {
padding-top: 0px;
}
}
View
No changes.

0 comments on commit aa9cf1b

Please sign in to comment.