Authored by lore-w

增加首页、频道页字段

... ... @@ -4,7 +4,7 @@
<div class="home-content">
<ul>
{{#content}}
<li class="content-item channel-{{channel}}">
<li class="content-item channel-{{channelType}}">
<a class="img-link" href="{{link}}" target="_blank">
<img src="{{img}}" alt=""/>
<a class="sub-tag" href="{{subChannelLink}}">{{subChannel}}</a>
... ...
... ... @@ -4,7 +4,7 @@
<div class="home-content">
<ul>
{{#content}}
<li class="content-item channel-{{channel}}">
<li class="content-item channel-{{channelType}}">
<a class="img-link" href="{{link}}" target="_blank">
<img src="{{img}}" alt=""/>
<a class="sub-tag" href="{{subChannelLink}}">{{subChannel}}</a>
... ...
... ... @@ -14,7 +14,7 @@
<div class="home-content">
<ul>
{{# content}}
<li class="content-item channel-{{channel}}">
<li class="content-item channel-{{channelType}}">
<a class="img-link" href="{{link}}" target="_blank">
<img src="{{img}}" alt=""/>
</a>
... ...
... ... @@ -14,7 +14,7 @@
<div class="home-content">
<ul>
{{# content}}
<li class="content-item channel-{{channel}}">
<li class="content-item channel-{{channelType}}">
<a class="img-link" href="{{link}}" target="_blank">
<img src="{{img}}" alt=""/>
</a>
... ...
... ... @@ -6,24 +6,26 @@
</div>
<div class="result">
{{^ noq}}
{{#with ../total}}
{{# total}}
{{# isSingular}}
{{val}} result
{{/ isSingular}}
{{^ isSingular}}
{{val}} results
{{/ isSingular}}
{{else}}
{{/ total}}
{{^ total}}
No result
{{/ with}}
{{/ total}}
{{/ noq}}
</div>
</div>
{{^ noq}}
{{#with ../total}}
{{else}}
{{^ total}}
<div style="text-align:center;font-size:20px;">未搜索到相关结果</div>
{{/ with}}
{{/ total}}
{{/ noq}}
<!--content-->
<div class="home-content">
... ...
... ... @@ -5,20 +5,28 @@
<span class="search_btn"></span>
</div>
<div class="result">
{{^ total}}No result{{/ total}}
{{^ noq}}
{{# total}}
{{# isSingular}}
{{val}} result
{{/ isSingular}}
{{^ isSingular}}
{{val}} results
{{/ isSingular}}
{{/ total}}
{{^ total}}
No result
{{/ total}}
{{/ noq}}
</div>
</div>
{{^ noq}}
{{^ total}}
<div style="text-align:center;font-size:20px;">未搜索到相關結</div>
<div style="text-align:center;font-size:20px;">未搜索到相关结</div>
{{/ total}}
{{/ noq}}
<!--content-->
<div class="home-content">
<ul>
... ...
{{#content}}
<li class="content-item channel-{{channel}}">
<li class="content-item channel-{{channelType}}">
<a class="img-link" href="{{link}}" target="_blank">
<img src="{{img}}" alt=""/>
</a>
... ...