feat: finish index page
This commit is contained in:
parent
2a5f17375b
commit
2d4ff7b11c
8 changed files with 43 additions and 11 deletions
14
src/_includes/macros/posts.njk
Normal file
14
src/_includes/macros/posts.njk
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% macro list(posts) %}
|
||||
<ul class="[ list-none p-0 flow mt-1 mb-0 flow-space-0.25 ]">
|
||||
{% for post in posts %}
|
||||
<li class="[ flex flex-wrap column-gap-1 row-gap-0 ]">
|
||||
<div>
|
||||
<a href="{{ post.url }}">{{ post.data.title }}</a>
|
||||
</div>
|
||||
<div class="[ text-fadeText font-size-s ]">{{ post.data.excerpt }}</div>
|
||||
<div class="[ bg-surface radius-0.5 px-0.5 text-primary font-size-s ]">{{ post.data.date | formatDate("MM/DD/YYYY") }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endmacro %}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue