From 97313e9f046379317a9603320ef49f590f20582f Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 22 Jun 2022 12:14:10 +1000 Subject: [PATCH] =?UTF-8?q?=E2=99=BF=EF=B8=8F=20Use=20author=20name=20for?= =?UTF-8?q?=20images=20when=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ layouts/partials/author.html | 2 +- layouts/partials/home/profile.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f4f74e..bf1cf9e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Changed + +- Profile image alt text now uses author name when available + ### Fixed - Search not working when `baseURL` does not end with a forward slash ([#224](https://github.com/jpanther/congo/pull/224)) diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 95e7085d..d8c502a1 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -8,7 +8,7 @@ class="w-24 h-24 !mt-0 !mb-0 ltr:mr-4 rtl:ml-4 rounded-full" width="96" height="96" - alt="Author" + alt="{{ $.Site.Author.name | default "Author" }}" src="{{ $authorImage.RelPermalink }}" /> {{ end }} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 0cae92f8..ffe26d1e 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -12,7 +12,7 @@ class="mb-2 rounded-full w-36 h-36" width="144" height="144" - alt="Author" + alt="{{ $.Site.Author.name | default "Author" }}" src="{{ $authorImage.RelPermalink }}" /> {{ end }}