Browse Source

add a post count to the years...

as the months are always displayed, it just looks bad to add them there..
main
John-Mark Gurney 3 years ago
parent
commit
202efa1ce2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      layout/base.j2

+ 1
- 1
layout/base.j2 View File

@@ -66,7 +66,7 @@
{% set hierarchy = node.rwalk()|list %}
{% for yeargrp in hierarchy[-1].walk_resources_sorted_by_time()|groupby("meta.created.year")|reverse %}
<div class="w3-dropdown-hover w3-dropdown-click">
<button class="w3-button">{{ yeargrp.grouper }}{# font awesome <i class="fa fa-caret-down"></i> #}</button>
<button class="w3-button">{{ yeargrp.grouper }} ({{ yeargrp.list|count }}){# font awesome <i class="fa fa-caret-down"></i> #}</button>
<div class="w3-dropdown-content w3-bar-block">
{% for monthgrp in yeargrp.list|groupby("meta.created.month")|reverse %}
<button class="w3-button">{{ monthgrp.list[0].meta.created|date_format('%B') }}{# font awesome <i class="fa fa-caret-down"></i> #}</button>


Loading…
Cancel
Save