diff --git a/src/_includes/macros/catalogue.njk b/src/_includes/macros/catalogue.njk
index 7ba1bea..c7e405f 100644
--- a/src/_includes/macros/catalogue.njk
+++ b/src/_includes/macros/catalogue.njk
@@ -1,14 +1,37 @@
-{% macro list(posts) %}
-
+ {{ post.data.title }}
+ {{ post.date | formatDate("MM/DD") }}
+
+
+ {% if post.data.rating %}
+ {{ stars(post.data.rating) }}
+ {% endif %}
+
+
+{% endmacro %}
+
+{% macro list(posts) %}
+
+ {{ post.data.title }}
+ {{ post.date | formatDate(format) }}
+ {{ post.data.excerpt }}
+
+{% endmacro %}
+
{% macro list(posts, format = "MM/DD") %}
-
@@ -28,9 +28,6 @@ eleventyComputed:
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
- {{ year }}
-
- {{ list(itemsInYear) }}
-
+ {{ yearList(itemsInYear, year) }}
{% endfor %}
diff --git a/src/catalogue.html b/src/catalogue.html
index 318c028..3f53c92 100644
--- a/src/catalogue.html
+++ b/src/catalogue.html
@@ -4,7 +4,7 @@ permalink: /catalogue/index.html
title: Catalogue
---
-{% from "macros/catalogue.njk" import list %}
+{% from "macros/catalogue.njk" import yearList %}
Catalogue
A collection of my thoughts on various forms of media that I consume.
{% set catalogueTypes = collections.catalogueByType | keys %}
@@ -21,9 +21,6 @@ title: Catalogue
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
- {{ year }}
-
- {{ list(itemsInYear) }}
-
+ {{ yearList(itemsInYear, year) }}
{% endfor %}
diff --git a/src/css/blocks/posts.css b/src/css/blocks/posts.css
index c415f23..cb91bc4 100644
--- a/src/css/blocks/posts.css
+++ b/src/css/blocks/posts.css
@@ -1,4 +1,4 @@
.posts-list-item {
display: grid;
- grid-template-columns: 1fr auto;
+ grid-template-columns: auto auto;
}
diff --git a/src/css/utilities/fonts.css b/src/css/utilities/fonts.css
index 15e7406..902f9e5 100644
--- a/src/css/utilities/fonts.css
+++ b/src/css/utilities/fonts.css
@@ -29,3 +29,7 @@
.line-height-l {
line-height: 1.5rem;
}
+
+.line-height-xl {
+ line-height: 2rem;
+}
diff --git a/src/index.html b/src/index.html
index 9aeb3a9..3484d59 100644
--- a/src/index.html
+++ b/src/index.html
@@ -13,14 +13,18 @@ permalink: /
If you're interested, I have an about page all about me!
-Favourite posts
-Hand-picked, curated selection of my favourite posts!
-{% set favouritePosts = collections.post | filterFavourites | reverse %}
+
+ {% set favouritePosts = collections.post | filterFavourites | reverse %}
{{ list(favouritePosts, "MM/DD/YYYY") }}
-Recent posts
-{% set recentPosts = collections.post | reverse | limit(5) %}
+
+ {% set recentPosts = collections.post | reverse | limit(5) %}
{{ list(recentPosts, "MM/DD/YYYY") }}
diff --git a/src/posts.html b/src/posts.html
index 4891eb3..8e650f9 100644
--- a/src/posts.html
+++ b/src/posts.html
@@ -4,7 +4,7 @@ permalink: /posts/index.html
title: Posts
---
-{% from "macros/posts.njk" import list %}
+{% from "macros/posts.njk" import yearList %}
All posts
Browse all of my posts, or narrow things down via tags.
@@ -14,9 +14,6 @@ title: Posts
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
- {{ year }}
-
- {{ list(itemsInYear) }}
-
+ {{ yearList(itemsInYear, year) }}
{% endfor %}
diff --git a/src/tag.html b/src/tag.html
index b1c659a..cde3325 100644
--- a/src/tag.html
+++ b/src/tag.html
@@ -9,7 +9,7 @@ pagination:
permalink: /tags/{{ tag | slugify }}/index.html
---
-{% from "macros/posts.njk" import list %}
+{% from "macros/posts.njk" import yearList %}
Tag: {{ tag }}
All posts tagged with "{{ tag }}", or go back to all tags.
@@ -19,9 +19,6 @@ permalink: /tags/{{ tag | slugify }}/index.html
{% for year in years %}
{% set itemsInYear = itemsByYear[year] %}
- {{ year }}
-
- {{ list(itemsInYear) }}
-
+ {{ yearList(itemsInYear, year) }}
{% endfor %}