add search
This commit is contained in:
@@ -55,15 +55,12 @@
|
||||
<i class="icon-rss"></i> RSS
|
||||
</a>
|
||||
</nav>
|
||||
<#--
|
||||
<div class="fn-right">
|
||||
<form class="form" target="_blank" action="http://zhannei.baidu.com/cse/site">
|
||||
<input placeholder="${searchLabel}" id="search" type="text" name="q"/>
|
||||
<form class="form" action="${servePath}/search">
|
||||
<input placeholder="${searchLabel}" id="search" type="text" name="keyword"/>
|
||||
<button type="submit"><i class="icon-search"></i></button>
|
||||
<input type="hidden" name="cc" value="${serverHost}">
|
||||
</form>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</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>
|
Reference in New Issue
Block a user