diff options
Diffstat (limited to 'templates/partials/posts.twig')
| -rw-r--r-- | templates/partials/posts.twig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/partials/posts.twig b/templates/partials/posts.twig new file mode 100644 index 0000000..b900ef6 --- /dev/null +++ b/templates/partials/posts.twig | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | <ul class="article-list"> | ||
| 2 | {% for item in list %} | ||
| 3 | <li> | ||
| 4 | <time datetime="{{ item.date|date("Y, F j") }}">{{ item.date|date("Y, F j") }}</time> | ||
| 5 | <a href="{{ item.slug }}">{{ item.title }}</a> | ||
| 6 | </li> | ||
| 7 | {% endfor %} | ||
| 8 | </ul> | ||
