搜索优化
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<a href="<%- url_for(post.path) %>" class="<%= class_name %>">
|
||||
<a href="<%- url_for('/archives'+date(post.date, '/YYYY/MM')) %>" class="<%= class_name %>">
|
||||
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><i class="icon-calendar icon"></i><%= date(post.date, date_format) %></time>
|
||||
</a>
|
||||
@@ -1 +1 @@
|
||||
<%- js('js/mobile.cfb38e2874478d984279.js') %> <%- js('js/slider.a6b92350b3a9ce92ddd9.js') %> <%- js('js/main.34802c21ea4824f2ae00.js') %>
|
||||
<%- js('js/mobile.cfb38e2874478d984279.js') %> <%- js('js/slider.5ca5d3094d7d23f182cf.js') %> <%- js('js/main.34802c21ea4824f2ae00.js') %>
|
||||
@@ -91,13 +91,13 @@
|
||||
<i class="icon-calendar icon"></i>
|
||||
<span >{{item.date|dateformat}}</span>
|
||||
</p>
|
||||
<p class="search-category">
|
||||
<i class="icon-book icon"></i>
|
||||
<span v-for="category in item.categories" @click="chose(category.name, '$')" >{{'$'+category.name}}</span>
|
||||
<p class="search-category" v-if="item.categories.length">
|
||||
<i class="icon-book icon" ></i>
|
||||
<span v-for="category in item.categories" @click="chose(category.name, '$')" >{{category.name}}</span>
|
||||
</p>
|
||||
<p class="search-tag">
|
||||
<i class="icon-price-tags icon"></i>
|
||||
<span v-for="tag in item.tags" @click="chose(tag.name, '#')" >{{'#'+tag.name}}</span>
|
||||
<p class="search-tag" v-if="item.tags.length">
|
||||
<i class="icon-price-tags icon" ></i>
|
||||
<span v-for="tag in item.tags" @click="chose(tag.name, '#')" >{{tag.name}}</span>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -124,5 +124,4 @@
|
||||
</section>
|
||||
<%}%>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user