{% if list.length %}
<ul class="list-transverse col-md-12">
    {% for item in list %}
        <li class="list-transverse__item">
            <a href="/news/detail/{{ item.id }}">
                <div class="list-transverse__pic">
                    <img class="list-transverse__img" src="{{ item.imgUrl }}" onerror="defaultImg()"/>
                </div>
                <div class="list-transverse__info">
                    <div class="list-transverse__title">{{ item.title }}</div>
                    <div