{% extends "layout.html" %}
{% block body %}
<div class="container">
    <div class="row">
        <h1>一个简单粗暴有效的个人<a target="_blank" href="https://github.com/drunkpig/mdwiki">博客</a></h1>
        <table class="list">
            <thead>
            <th>文章标题</th>
            <th>发表日期</th>
            <th>阅读次数</th>
            </thead>
            {% for url, title, pub_date, read_cnt in post %}

            <tr>
                <th><a href="{{ url }}" target="_blank">{{ title }}</a></th>
                <th>{{ pub_date|default('置顶',True) }}</th>
                <th>{{ read_cnt }}</th>
            </tr>

            {% endfor %}
        </table>

        <div class="yahoo pagger">
            {% for i in pagger_idx %}
            {% if i==cur_page %}
            <span class="current">[{{ i }}]</span>
            {% elif i==0 %}

            <a href="index.html" target="_self">{{ i }}</a>
            {% else %}

            <a href="index_{{ i }}.html" target="_self">{{ i }}</a>
            {% endif %}

            {% endfor %}

        </div>
    </div>
</div>
{% endblock %}