feat: update tags to order by count
This commit is contained in:
parent
58d679d3c9
commit
2eed920716
10 changed files with 72 additions and 40 deletions
|
@ -1,17 +1,19 @@
|
|||
{% set itemsByYear = items | organizeByDate %}
|
||||
{% set years = itemsByYear | keys | sort("desc") %}
|
||||
<section>
|
||||
<section class="[ archive ]">
|
||||
{% for year in years %}
|
||||
{% set itemsInYear = itemsByYear[year] %}
|
||||
<div class="[ flex ]">
|
||||
<div class="[ flex mt-1.5 mb-0.5 ]">
|
||||
<h2>{{ year }}</h2>
|
||||
</div>
|
||||
{% for item in itemsInYear %}
|
||||
<div class="[ flex items-center justify-between ]">
|
||||
<a href="{{ item.url }}">{{ item.data.title }}</a>
|
||||
<div class="[ archive-divider ] [ mx-0.5 ]"></div>
|
||||
<div>{{ item.date | formatDate("MM/DD") }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="[ items ] [ flex-col gap-0.25 ]">
|
||||
{% for item in itemsInYear %}
|
||||
<div class="[ flex items-center justify-between ]">
|
||||
<a href="{{ item.url }}">{{ item.data.title }}</a>
|
||||
<hr class="[ archive-divider ] [ mx-0.5 ]" />
|
||||
<p class="[ archive-date ]">{{ item.date | formatDate("MM/DD") }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue