right-side.hbs 1.83 KB
<div class="ex-reco">
    <h2 class="ex-reco-title">精彩推荐</h2>
    <div id="ex-reco-list" class="ex-reco-list">
        {{# exRecos}}
           <div class="ex-reco-item clearfix">
                <a class="ex-reco-img" href="{{url}}" target="_blank">
                    <span class="bg-img" style="background-image:url({{image2 img}})"></span>
                </a>
                <a href="{{url}}" target="_blank">
                    <p class="ex-reco-context">{{title}}</p>
                </a>
            </div>
        {{/ exRecos}}
    </div>
</div>

{{#unless @root.pc.guang.removeHotTag}}
    <div class="hot">
        <h2 class="hot-title">热门标签</h2>
        <div class="hot-tag-list">
            {{#hotTags}}
                <a class="hot-tag" href="{{url}}" target="_blank" rel="nofollow">
                    {{tagName}}
                </a>
            {{/hotTags}}
        </div>
    </div>
{{/unless}}

{{#if authorArticle}}
    <div class="ex-reco">
        <h2 class="ex-reco-title">作者相关文章</h2>
        <div id="ex-reco-list" class="ex-reco-list">
            {{# authorArticle}}
                {{#if url}}
                   <div class="ex-reco-item clearfix">
                        <a class="ex-reco-img" href="{{url}}" target="_blank">
                            <span class="bg-img" style="background-image:url({{image2 img}})"></span>
                        </a>
                        <a href="{{url}}" target="_blank">
                            <p class="ex-reco-context">{{title}}</p>
                        </a>
                    </div>
                {{/if}}
            {{/ authorArticle}}
        </div>
    </div>
{{/if}}

<div class="ads">
    {{# ads}}
        <a class="ad" href="{{url}}" target="_blank">
            <img class="lazy" data-original="{{image2 img}}">
        </a>
    {{/ ads}}
</div>