Spaceack 7 years ago
parent 1073ecffea
commit 433cf06f89

@ -25,11 +25,11 @@
<div class="entry-content">
{% regroup article_list by created_time.year as year_post_group %}
{% 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 created_time.month as month_post_group %}
{% regroup year.list by pub_time.month as month_post_group %}
<ul>
{% for month in month_post_group %}
<li>{{ month.grouper }}

@ -3,13 +3,13 @@
{% with article.id|add:user.is_authenticated as cachekey %}
{% cache 36000 metainfo cachekey %}
<footer class="entry-meta">
本条目发布于<a href="{{ article.get_absolute_url }}" title="{% datetimeformat article.created_time %}"
itemprop="datePublished" content="{% datetimeformat article.created_time %}"
本条目发布于<a href="{{ article.get_absolute_url }}" title="{% datetimeformat article.pub_time %}"
itemprop="datePublished" content="{% datetimeformat article.pub_time %}"
rel="bookmark">
<time class="entry-date updated"
datetime="{{ article.created_time }}">
{% datetimeformat article.created_time %}</time>
datetime="{{ article.pub_time }}">
{% datetimeformat article.pub_time %}</time>
</a>
{% if article.type == 'a' %}
属于<a href="{{ article.category.get_absolute_url }}" rel="category tag">{{ article.category.name }}</a>
@ -48,4 +48,4 @@
</footer><!-- .entry-meta -->
{% endcache %}
{% endwith %}
{% endwith %}

Loading…
Cancel
Save