msg.hbs 2.17 KB
<div class="msg-content clearfix" data-id="{{id}}">
    <div class="msg-img">
        <div class="classification">
            {{classification}}
        </div>
        {{# isCollocation}}
            <div class="type-icon collocation"></div>
        {{/ isCollocation}}
        {{# isFashionMan}}
            <div class="type-icon fashion-man"></div>
        {{/ isFashionMan}}
        {{# isFashionGood}}
            <div class="type-icon fashion-good"></div>
        {{/ isFashionGood}}
        {{# isTopic}}
            <div class="type-icon topic"></div>
        {{/ isTopic}}
        {{# isSpecialTopic}}
            <div class="type-icon special-topic"></div>
        {{/ isSpecialTopic}}
        <a href="{{url}}" target="_blank">
            <img class="lazy{{#if isSquareImg}} square{{/if}}" data-original="{{image2 img}}">
        </a>
    </div>
    <div class="msg-info">
        <a class="msg-title" href="{{url}}" target="_blank">{{title}}</a>
        <p class="msg-app">
            <a href="{{editorUrl}}" target="_blank">
                <span class="author">{{author}}</span>
            </a>
            <span class="publish-time">
                <i class="iconfont">&#xe625;</i>
                {{pTime}}
            </span>
            <span class="page-view">
                <i class="iconfont">&#xe627;</i>
                <em>{{pView}}</em>
            </span>
        </p>
        <p class="content">{{content}}</p>
        <div class="footer">
            <div class="tags">
                {{# tags}}
                    <a class="msg-tag" href="{{url}}" target="_blank">{{tag}}</a>
                {{/ tags}}
            </div>
            <div class="like-comment">
                <span class="like">
                    <i class="iconfont like-icon{{#if liked}} liked{{/if}}">&#xe626;</i>
                    {{#if like}}<b class="like-num">(<em class="num">{{like}}</em>)</b>{{/if}}
                </span>
                <span class="comment">
                    <i class="iconfont">&#xe624;</i>
                    {{# comment}}
                        (<em>{{.}}</em>)
                    {{/ comment}}
                </span>
            </div>
        </div>
    </div>
</div>