diff options
Diffstat (limited to 'design/templates/archives/resume-pubs.html')
-rw-r--r-- | design/templates/archives/resume-pubs.html | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/design/templates/archives/resume-pubs.html b/design/templates/archives/resume-pubs.html index daed46f..16270b3 100644 --- a/design/templates/archives/resume-pubs.html +++ b/design/templates/archives/resume-pubs.html @@ -18,14 +18,15 @@ <nav class="toc"><ul>{% for publisher in pub_list %} <li><a href="#{{publisher.name|slugify}}">{{publisher.name}}</a></li>{%endfor%} </ul></nav> -{% regroup object_list by publisher.name as pub_list %}{% for pub in pub_list %} - <ul class="publications-list"> - <li><h2 id="{{pub.grouper|slugify}}">{{ pub.grouper }}</h2></li> - <ul>{% for object in pub.list %} - <li class="pub-title"><h3><a href="{{object.get_absolute_url}}">{{object.title|amp|smartypants|widont|safe}}</a></h3> - <time class="dt-published published dt-updated" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> - </li>{% endfor %} - </ul>{% endfor %} + <ul class="publications-list">{% regroup object_list|dictsort:"publisher_id" by publisher.name as pub_list %}{% for pub in pub_list %} + <li> + <h2 id="{{pub.grouper|slugify}}">{{ pub.grouper }}</h2> + <ul>{% for object in pub.list %} + <li class="pub-title"><h3><a href="{{object.get_absolute_url}}">{{object.title|amp|smartypants|widont|safe}}</a></h3> + <time class="dt-published published dt-updated" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time> + </li>{% endfor %} + </ul> + </li>{% endfor %} </ul> </main> {% endblock %} |