diff --git a/src/_data/posts.js b/src/_data/posts.js index f33ab25..30f8561 100644 --- a/src/_data/posts.js +++ b/src/_data/posts.js @@ -3,7 +3,6 @@ const postCache = require('./_postData'); const dateSort = (a, b) => new Date(b.date) - new Date(a.date); const mapComment = comment => { - console.log(comment); return ({ author: { name: comment.author_name, diff --git a/src/_includes/post.njk b/src/_includes/post.njk index 658e095..a1be5cd 100644 --- a/src/_includes/post.njk +++ b/src/_includes/post.njk @@ -32,7 +32,7 @@ eleventyComputed:
{% for like in post.comments.like %} - {{ like.author.name }} + {% remoteImage(like.author.avatars["96"], like.author.name, "circle", "96px", [96] %} {% endfor %}
@@ -44,9 +44,9 @@ eleventyComputed:

Reposts

- {% for like in post.comments.repost %} - - {{ like.author.name }} + {% for repost in post.comments.repost %} + + {% remoteImage(repost.author.avatars["96"], repost.author.name, "circle", "96px", [96] %} {% endfor %}
diff --git a/src/css/utilities/circle.css b/src/css/utilities/circle.css index e8fefd0..6e5d178 100644 --- a/src/css/utilities/circle.css +++ b/src/css/utilities/circle.css @@ -4,4 +4,5 @@ display: block; object-fit: cover; object-position: center; + height: auto; } \ No newline at end of file