keep archive per year, don't call it archive
This commit is contained in:
parent
d995ea0c6f
commit
cf2efd7fb3
8 changed files with 72 additions and 17 deletions
|
|
@ -6,7 +6,9 @@
|
|||
<div class="index archive">
|
||||
{% for item in items %}
|
||||
{% ifchanged item.week %}
|
||||
{% comment %}
|
||||
<h2 class="week">{{ item.year }} week {{ item.week }}</h2>
|
||||
{% endcomment %}
|
||||
{% endifchanged %}
|
||||
{% include "listitem.html" with item=item %}
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
{% endfor %}
|
||||
{% if archive %}
|
||||
<div class="archive">
|
||||
<a href="/archive/">previous weeks</a>
|
||||
<a href="{{ archive }}">previous weeks</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -50,12 +50,14 @@
|
|||
{% endblock %}
|
||||
{% block end %}
|
||||
<script>
|
||||
var comments = {{ comments }};
|
||||
var user = {{ user }};
|
||||
var item = {
|
||||
id: {{ item.id }},
|
||||
title: '{{ item.title|escapejs }}'
|
||||
title: '{{ item.title|escapejs }}',
|
||||
next: '{{ next }}',
|
||||
previous: '{{ previous }}',
|
||||
};
|
||||
var comments = JSON.parse("{{ comments|escapejs }}");
|
||||
</script>
|
||||
{% compress js file m %}
|
||||
<script src="/static/js/utils.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue