feat: update catalogue layout
This commit is contained in:
parent
ef3a3b4295
commit
607593880c
5 changed files with 43 additions and 8 deletions
14
src/_includes/macros/catalogue.njk
Normal file
14
src/_includes/macros/catalogue.njk
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% macro list(posts) %}
|
||||
<ul class="[ catalogue-list ] [ flow list-none m-0 p-0 flow-space-0.5 ]">
|
||||
{% for post in posts %}
|
||||
<li class="[ catalogue-list-item line-height-l ]">
|
||||
<div>
|
||||
<a href="{{ post.url }}">{{ post.data.title }}</a>
|
||||
</div>
|
||||
<div class="[ font-size-s line-height-s flex items-center ]"><p class="[ bg-surface text-primary p-0.5 radius-0.25 ]">{{ post.data.tags[1] }}</p></div>
|
||||
<div class="[ text-fadeText line-height-m flex items-center ]">{{ post.data.date | formatDate("MM/DD") }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endmacro %}
|
||||
|
|
@ -11,4 +11,3 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
{% endmacro %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue