add search
This commit is contained in:
parent
895d9ca2eb
commit
a195a81073
@ -55,15 +55,12 @@
|
|||||||
<i class="icon-rss"></i> RSS
|
<i class="icon-rss"></i> RSS
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
<#--
|
|
||||||
<div class="fn-right">
|
<div class="fn-right">
|
||||||
<form class="form" target="_blank" action="http://zhannei.baidu.com/cse/site">
|
<form class="form" action="${servePath}/search">
|
||||||
<input placeholder="${searchLabel}" id="search" type="text" name="q"/>
|
<input placeholder="${searchLabel}" id="search" type="text" name="keyword"/>
|
||||||
<button type="submit"><i class="icon-search"></i></button>
|
<button type="submit"><i class="icon-search"></i></button>
|
||||||
<input type="hidden" name="cc" value="${serverHost}">
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
-->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
26
9IPHP/search.ftl
Normal file
26
9IPHP/search.ftl
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<#include "macro-head.ftl">
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<@head title="${blogTitle}">
|
||||||
|
<#if metaKeywords??>
|
||||||
|
<meta name="keywords" content="${metaKeywords}"/>
|
||||||
|
</#if>
|
||||||
|
<#if metaDescription??>
|
||||||
|
<meta name="description" content="${metaDescription}"/>
|
||||||
|
</#if>
|
||||||
|
</@head>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<#include "header.ftl">
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="main-wrap">
|
||||||
|
<main>
|
||||||
|
<#include "article-list.ftl">
|
||||||
|
</main>
|
||||||
|
<#include "side.ftl">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<#include "footer.ftl">
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -119,7 +119,7 @@ a:hover {
|
|||||||
.header .right li a {
|
.header .right li a {
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
font-family: 'sans-serif';
|
font-family: 'sans-serif';
|
||||||
font-size: 45px;
|
font-size: 26px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
2
Andrea/css/Andrea.min.css
vendored
2
Andrea/css/Andrea.min.css
vendored
File diff suppressed because one or more lines are too long
@ -31,7 +31,7 @@
|
|||||||
<div class="right">
|
<div class="right">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a rel="nofollow" class="home" href="${servePath}">Blog</a>
|
<a rel="nofollow" class="home" href="${servePath}/search?keyword=">Search</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="${servePath}/tags.html">Tags</a>
|
<a href="${servePath}/tags.html">Tags</a>
|
||||||
|
@ -13,6 +13,7 @@ ${topBarReplacement}
|
|||||||
<a class="nav-item" href="${servePath}/links.html">${friendLinkLabel}</a>
|
<a class="nav-item" href="${servePath}/links.html">${friendLinkLabel}</a>
|
||||||
<a class="nav-item" href="${servePath}/tags.html">${tagLabel}</a>
|
<a class="nav-item" href="${servePath}/tags.html">${tagLabel}</a>
|
||||||
<a class="nav-item" href="${servePath}/archives.html">${archiveLabel}</a>
|
<a class="nav-item" href="${servePath}/archives.html">${archiveLabel}</a>
|
||||||
|
<a href="${servePath}/search?keyword=">Search</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="col-sm-2"></div>
|
<div class="col-sm-2"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
<span class="clear"></span>
|
<span class="clear"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="tab">
|
||||||
|
<a href="${servePath}/search?keyword=">Search</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
@ -38,6 +38,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<a rel="alternate" href="${servePath}/blog-articles-rss.do">${subscribeLabel}</a>
|
<a rel="alternate" href="${servePath}/blog-articles-rss.do">${subscribeLabel}</a>
|
||||||
</li>
|
</li>
|
||||||
|
<Li>
|
||||||
|
<a href="${servePath}/search?keyword=">Search</a>
|
||||||
|
</Li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="count">
|
<div class="count">
|
||||||
<span>
|
<span>
|
||||||
|
@ -170,7 +170,7 @@ textarea, input {
|
|||||||
/* start ico */
|
/* start ico */
|
||||||
.date-ico, .tag-ico, .user-ico, .expand-ico, .collapse-ico, #search,
|
.date-ico, .tag-ico, .user-ico, .expand-ico, .collapse-ico, #search,
|
||||||
.translate-ico, .feed-ico {
|
.translate-ico, .feed-ico {
|
||||||
background-image: url("../../neoease/images/icons.png");
|
background-image: url("../../NeoEase/images/icons.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.feed-ico {
|
.feed-ico {
|
||||||
@ -253,7 +253,7 @@ textarea, input {
|
|||||||
|
|
||||||
/* start header */
|
/* start header */
|
||||||
.header {
|
.header {
|
||||||
background: url("../../neoease/images/icons.png") repeat-x scroll 0 -220px #F2F2F2;
|
background: url("../../NeoEase/images/icons.png") repeat-x scroll 0 -220px #F2F2F2;
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -369,7 +369,7 @@ textarea, input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#goTop {
|
#goTop {
|
||||||
background: url("../../neoease/images/icons.png") no-repeat scroll 5px -51px #DDD;
|
background: url("../../NeoEase/images/icons.png") no-repeat scroll 5px -51px #DDD;
|
||||||
border-radius: 2px 2px 0 0;
|
border-radius: 2px 2px 0 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
@ -881,7 +881,7 @@ textarea, input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
background-image: url("../../neoease/images/404.png");
|
background-image: url("../../NeoEase/images/404.png");
|
||||||
float: left;
|
float: left;
|
||||||
height: 536px;
|
height: 536px;
|
||||||
margin: 50px 80px;
|
margin: 50px 80px;
|
||||||
|
2
NeoEase/css/NeoEase.min.css
vendored
2
NeoEase/css/NeoEase.min.css
vendored
File diff suppressed because one or more lines are too long
@ -8,13 +8,10 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<span class="sub-title">${blogSubtitle}</span>
|
<span class="sub-title">${blogSubtitle}</span>
|
||||||
</div>
|
</div>
|
||||||
<#--
|
<form class="right" action="${servePath}/search">
|
||||||
<form class="right" target="_blank" action="http://zhannei.baidu.com/cse/site">
|
<input id="search" type="text" name="keyword" />
|
||||||
<input id="search" type="text" name="q" />
|
|
||||||
<input type="submit" value="" class="none" />
|
<input type="submit" value="" class="none" />
|
||||||
<input type="hidden" name="cc" value="${serverHost}">
|
|
||||||
</form>
|
</form>
|
||||||
-->
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
</#list>
|
</#list>
|
||||||
<a href="${servePath}/tags.html">${allTagsLabel}</a>
|
<a href="${servePath}/tags.html">${allTagsLabel}</a>
|
||||||
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS</a><a href="${servePath}/blog-articles-rss.do"><img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
|
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS</a><a href="${servePath}/blog-articles-rss.do"><img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
|
||||||
|
<a href="${servePath}/search?keyword=">Search</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="right" id="statistic">
|
<div class="right" id="statistic">
|
||||||
<span>${viewCount1Label}
|
<span>${viewCount1Label}
|
||||||
|
@ -42,13 +42,10 @@
|
|||||||
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS<img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
|
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS<img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<#--
|
<form action="${servePath}/search">
|
||||||
<form target="_blank" action="http://zhannei.baidu.com/cse/site">
|
<input id="search" type="text" name="keyword" />
|
||||||
<input id="search" type="text" name="q" />
|
|
||||||
<input type="submit" value="" class="none" />
|
<input type="submit" value="" class="none" />
|
||||||
<input type="hidden" name="cc" value="${serverHost}">
|
|
||||||
</form>
|
</form>
|
||||||
-->
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}" class="${page.pageTitle}">${page.pageTitle}</a>
|
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}" class="${page.pageTitle}">${page.pageTitle}</a>
|
||||||
</#list>
|
</#list>
|
||||||
<a rel="alternate" href="${servePath}/blog-articles-rss.do" class="classifiche">RSS</a>
|
<a rel="alternate" href="${servePath}/blog-articles-rss.do" class="classifiche">RSS</a>
|
||||||
|
<a href="${servePath}/search?keyword=">Search</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="thinks"></div>
|
<div class="thinks"></div>
|
||||||
</div>
|
</div>
|
@ -28,6 +28,11 @@
|
|||||||
<img src="${staticServePath}/images/feed.png" alt="RSS"/>
|
<img src="${staticServePath}/images/feed.png" alt="RSS"/>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="${servePath}/search?keyword=">
|
||||||
|
Search
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="lastNavi" href="javascript:void(0);"></a>
|
<a class="lastNavi" href="javascript:void(0);"></a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -51,13 +51,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="side">
|
<div class="side">
|
||||||
<div>
|
<div>
|
||||||
<#--
|
<form action="${servePath}/search">
|
||||||
<form target="_blank" action="http://zhannei.baidu.com/cse/site">
|
<input placeholder="Search" id="search" type="text" name="keyword" /><span onclick="$(this).parent().submit()" data-ico="g"></span>
|
||||||
<input placeholder="Search" id="search" type="text" name="q" /><span onclick="$(this).parent().submit()" data-ico="g"></span>
|
|
||||||
<input type="submit" value="" class="fn-none" />
|
<input type="submit" value="" class="fn-none" />
|
||||||
<input type="hidden" name="cc" value="${serverHost}">
|
|
||||||
</form>
|
</form>
|
||||||
-->
|
|
||||||
|
|
||||||
<#if "" != noticeBoard>
|
<#if "" != noticeBoard>
|
||||||
<div class="notice-board side-tile">
|
<div class="notice-board side-tile">
|
||||||
|
@ -2,13 +2,10 @@
|
|||||||
<div class="side">
|
<div class="side">
|
||||||
<div class="fn-clear">
|
<div class="fn-clear">
|
||||||
<#if !isArticle>
|
<#if !isArticle>
|
||||||
<#--
|
<form action="${servePath}/search">
|
||||||
<form target="_blank" action="http://zhannei.baidu.com/cse/site">
|
<input placeholder="Search" id="search" type="text" name="keyword" /><span onclick="$(this).parent().submit()" data-ico="g"></span>
|
||||||
<input placeholder="Search" id="search" type="text" name="q" /><span onclick="$(this).parent().submit()" data-ico="g"></span>
|
|
||||||
<input type="submit" value="" class="fn-none" />
|
<input type="submit" value="" class="fn-none" />
|
||||||
<input type="hidden" name="cc" value="${serverHost}">
|
|
||||||
</form>
|
</form>
|
||||||
-->
|
|
||||||
|
|
||||||
<#if "" != noticeBoard>
|
<#if "" != noticeBoard>
|
||||||
<div class="notice-board side-tile">
|
<div class="notice-board side-tile">
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
<li><a href="${page.pagePermalink}" target="${page.pageOpenTarget}"><img src="${staticServePath}/skins/${skinDirName}/images/icon-pool/Apps.png" alt=""/>${page.pageTitle}</a></li>
|
<li><a href="${page.pagePermalink}" target="${page.pageOpenTarget}"><img src="${staticServePath}/skins/${skinDirName}/images/icon-pool/Apps.png" alt=""/>${page.pageTitle}</a></li>
|
||||||
</#list>
|
</#list>
|
||||||
<li><a rel="alternate" href="${servePath}/blog-articles-rss.do"><img src="${staticServePath}/skins/${skinDirName}/images/icon-pool/RSS.png" alt="" />RSS Feed</a></li>
|
<li><a rel="alternate" href="${servePath}/blog-articles-rss.do"><img src="${staticServePath}/skins/${skinDirName}/images/icon-pool/RSS.png" alt="" />RSS Feed</a></li>
|
||||||
|
<li><a href="${servePath}/search?keyword=">Search</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul id="head-tags">
|
<ul id="head-tags">
|
||||||
<#if 0 != mostUsedTags?size>
|
<#if 0 != mostUsedTags?size>
|
||||||
|
@ -46,15 +46,12 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<#--
|
|
||||||
<div class="site-search">
|
<div class="site-search">
|
||||||
<form target="_blank" action="http://zhannei.baidu.com/cse/site">
|
<form action="${servePath}/search">
|
||||||
<input placeholder="${searchLabel}" id="search" type="text" name="q"/>
|
<input placeholder="${searchLabel}" id="search" type="text" name="keyword"/>
|
||||||
<input type="submit" value="" class="fn-none" />
|
<input type="submit" value="" class="fn-none" />
|
||||||
<input type="hidden" name="cc" value="${serverHost}">
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
-->
|
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
@ -1,4 +1,11 @@
|
|||||||
<aside>
|
<aside>
|
||||||
|
<nav>
|
||||||
|
<h4>Search</h4>
|
||||||
|
<form action="${servePath}/search">
|
||||||
|
<input style="width: 194px" id="search" type="text" name="keyword" />
|
||||||
|
<input type="submit" value="" class="none" />
|
||||||
|
</form>
|
||||||
|
</nav>
|
||||||
<nav>
|
<nav>
|
||||||
<h4>Navigation</h4>
|
<h4>Navigation</h4>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -35,12 +35,9 @@
|
|||||||
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS <img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
|
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS <img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<#--
|
<form class="right" action="${servePath}/search">
|
||||||
<form class="right" target="_blank" action="http://zhannei.baidu.com/cse/site">
|
<input placeholder="${searchLabel}" id="search" type="text" name="keyword" />
|
||||||
<input placeholder="${searchLabel}" id="search" type="text" name="q" />
|
|
||||||
<input type="submit" value="" class="none" />
|
<input type="submit" value="" class="none" />
|
||||||
<input type="hidden" name="cc" value="${serverHost}">
|
|
||||||
</form>
|
</form>
|
||||||
-->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@ -11,7 +11,10 @@
|
|||||||
<a href="${servePath}/tags.html">${allTagsLabel}</a>
|
<a href="${servePath}/tags.html">${allTagsLabel}</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS</a><a href="${servePath}/blog-articles-rss.do"><img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
|
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS</a><a href="${servePath}/blog-articles-rss.do"><img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="${servePath}/search?keyword=">Search</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -35,6 +35,11 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="${servePath}/links.html">${linkLabel}</a>
|
<a href="${servePath}/links.html">${linkLabel}</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="${servePath}/search?keyword=">
|
||||||
|
Search
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user