diff options
| -rw-r--r-- | templates/index.twig | 10 | ||||
| -rw-r--r-- | templates/partials/posts.twig | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/templates/index.twig b/templates/index.twig index 5056040..b7916cf 100644 --- a/templates/index.twig +++ b/templates/index.twig | |||
| @@ -36,18 +36,10 @@ | |||
| 36 | {% include "partials/navigation.twig" %} | 36 | {% include "partials/navigation.twig" %} |
| 37 | 37 | ||
| 38 | <h2>Posts</h2> | 38 | <h2>Posts</h2> |
| 39 | {% include "partials/posts.twig" %} | ||
| 39 | 40 | ||
| 40 | <ul class="article-list"> | ||
| 41 | {% for item in list %} | ||
| 42 | <li> | ||
| 43 | <time datetime="{{ item.date|date("Y, F j") }}">{{ item.date|date("Y, F j") }}</time> | ||
| 44 | <a href="{{ item.slug }}">{{ item.title }}</a> | ||
| 45 | </li> | ||
| 46 | {% endfor %} | ||
| 47 | </ul> | ||
| 48 | 41 | ||
| 49 | <h2>Projects</h2> | 42 | <h2>Projects</h2> |
| 50 | |||
| 51 | {% include "partials/projects.twig" %} | 43 | {% include "partials/projects.twig" %} |
| 52 | 44 | ||
| 53 | </main> | 45 | </main> |
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> | ||
