{% init sticky_notes = [] %}

{% if len(sticky_notes) > 0 %}
    <div class="card">
        <div class="card-title">
            <span>置顶</span>
            <div class="float-right">
                <a class="btn btn-default" href="{{_server_home}}/note/sticky">更多</a>
            </div>
        </div>

        {% for item in sticky_notes %}
            <!-- 隐藏的记录 -->
            {% if hasattr(item, "hide") and item.hide %}
                {% continue %}
            {% end %}

            <a class="list-link" href="{{_server_home}}{{item.url}}">
                <!-- 图标和标题 -->
                <i class="fa {{item.icon}} fa-{{item.icon}} black"></i>                
                <span>{{item.name}}</span>
                
                {% if item.is_deleted %}
                    <span class="gray-tag-span" href="{{_server_home}}/note/removed">删除</span>
                {% end %}
                
                <div class="float-right">
                    <span class="book-size-span">{{item.update_date}}</span>
                    <i class="fa fa-chevron-right"></i>
                </div>
            </a>
        {% end %}
    </div>
{% end %}
