You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.1 KiB
60 lines
2.1 KiB
{% extends 'share_layout/base.html' %}
|
|
{% load blog_tags %}
|
|
{% load cache %}
|
|
{% block header %}
|
|
|
|
<title>文章归档 | {{ SITE_DESCRIPTION }}</title>
|
|
|
|
<meta name="description" content="{{ SITE_SEO_DESCRIPTION }}"/>
|
|
<meta name="keywords" content="{{ SITE_KEYWORDS }}"/>
|
|
<meta property="og:type" content="blog"/>
|
|
<meta property="og:title" content="{{ SITE_NAME }}"/>
|
|
<meta property="og:description" content="{{ SITE_DESCRIPTION }}"/>
|
|
<meta property="og:url" content="{{ SITE_BASE_URL }}"/>
|
|
<meta property="og:site_name" content="{{ SITE_NAME }}"/>
|
|
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div id="primary" class="site-content">
|
|
<div id="content" role="main">
|
|
|
|
<header class="archive-header">
|
|
|
|
<p class="archive-title">文章归档</p>
|
|
</header><!-- .archive-header -->
|
|
|
|
<div class="entry-content">
|
|
|
|
{% regroup article_list by pub_time.year as year_post_group %}
|
|
<ul>
|
|
{% for year in year_post_group %}
|
|
<li>{{ year.grouper }} 年
|
|
{% regroup year.list by pub_time.month as month_post_group %}
|
|
<ul>
|
|
{% for month in month_post_group %}
|
|
<li>{{ month.grouper }} 月
|
|
<ul>
|
|
{% for article in month.list %}
|
|
<li><a href="{{ article.get_absolute_url }}">{{ article.title }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div><!-- #content -->
|
|
</div><!-- #primary -->
|
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block sidebar %}
|
|
{% load_sidebar user 'i' %}
|
|
{% endblock %}
|
|
|
|
|