diff options
| author | seth <[email protected]> | 2023-03-17 23:32:45 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-03-17 23:32:45 -0400 |
| commit | 161359359d5585d38718c2a90812a60486cec227 (patch) | |
| tree | cbfd27c6c5539b05bd5f98a4f8f69d358cdb580a /src/_includes/components/postlist.njk | |
| parent | a0e562b603599abbfee76764202bdee331e470e1 (diff) | |
feat: add headerbar + refactor
Diffstat (limited to 'src/_includes/components/postlist.njk')
| -rw-r--r-- | src/_includes/components/postlist.njk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/_includes/components/postlist.njk b/src/_includes/components/postlist.njk new file mode 100644 index 0000000..66a4337 --- /dev/null +++ b/src/_includes/components/postlist.njk @@ -0,0 +1,14 @@ +<div> + <ul class="postList"> + {% for post in postList %} + <li> + <a href="{{ post.data.url }}">{{ post.data.title }}</a> + <time class="post-date" datetime="{{ post.data.date | date('DATETIME') }}"> + {{ post.data.date | date('HUMAN_DATE') }} + </time> + </li> + {% else %} + <p>no posts yet! 🥸</p> + {% endfor %} + </ul> +</div>
\ No newline at end of file |
