commit
72a71c1847
@ -0,0 +1,59 @@
|
||||
{% 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 created_time.year as year_post_group %}
|
||||
<ul>
|
||||
{% for year in year_post_group %}
|
||||
<li>{{ year.grouper }} 年
|
||||
{% regroup year.list by created_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 %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Loading…
Reference in new issue