From 2c93d9199e13e9d48ecb108e6fbd51a0b856f3ab Mon Sep 17 00:00:00 2001 From: Nathan Upchurch Date: Sun, 4 Aug 2024 19:01:05 -0500 Subject: [PATCH] Styling updates; Add author image to posts mastodon comments inside cards, added fleuron to indicate end of article --- _data/metadata.js | 2 +- _includes/layouts/post.njk | 43 ++++++++++++++---------- _includes/mastodonComments.njk | 18 +++++----- content/now.njk | 4 +-- public/css/index.css | 48 ++++++++++++++++++++------- public/js/webComponents/card.js | 1 + public/js/webComponents/profilePic.js | 6 ++-- 7 files changed, 78 insertions(+), 44 deletions(-) diff --git a/_data/metadata.js b/_data/metadata.js index 17ddd1a..e9fc1ae 100644 --- a/_data/metadata.js +++ b/_data/metadata.js @@ -8,7 +8,7 @@ export default { name: "Nathan Upchurch", email: "blog@upchur.ch", url: "https://nathanupchurch.com/me", - profilePic: "/img/CN20191025_301_Srt_SQUARE.jpg" + profilePic: "/img/CN20191025_301_Srt_SQUARE_crop.jpg" }, copyrightNotice: "© Nathan Upchurch 2022 - 2024", defaultPostImageURL: "/img/vasilina-sirotina-1NMPvajSt9Q-unsplash_copy.avif", diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 8be2d65..5bff878 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -8,30 +8,37 @@ layout: layouts/base.njk {% if not hideMetadata %}
{% if author %} - -

{% if author.url %}{% endif %} - {% if author.name %}{{ author.name }}, {% endif %}{% if author.url %}{% endif %}

+ {% if author.profilePic %} + + {% endif %} + {% endif %} {{ content | safe }} diff --git a/_includes/mastodonComments.njk b/_includes/mastodonComments.njk index ae3bb30..03aaf0e 100644 --- a/_includes/mastodonComments.njk +++ b/_includes/mastodonComments.njk @@ -15,14 +15,16 @@