️ Use author name for images when available

pull/231/head
James Panther 2022-06-22 12:14:10 +10:00
parent edd8ab5bcb
commit 97313e9f04
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
3 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased] ## [Unreleased]
### Changed
- Profile image alt text now uses author name when available
### Fixed ### Fixed
- Search not working when `baseURL` does not end with a forward slash ([#224](https://github.com/jpanther/congo/pull/224)) - Search not working when `baseURL` does not end with a forward slash ([#224](https://github.com/jpanther/congo/pull/224))

View File

@ -8,7 +8,7 @@
class="w-24 h-24 !mt-0 !mb-0 ltr:mr-4 rtl:ml-4 rounded-full" class="w-24 h-24 !mt-0 !mb-0 ltr:mr-4 rtl:ml-4 rounded-full"
width="96" width="96"
height="96" height="96"
alt="Author" alt="{{ $.Site.Author.name | default "Author" }}"
src="{{ $authorImage.RelPermalink }}" src="{{ $authorImage.RelPermalink }}"
/> />
{{ end }} {{ end }}

View File

@ -12,7 +12,7 @@
class="mb-2 rounded-full w-36 h-36" class="mb-2 rounded-full w-36 h-36"
width="144" width="144"
height="144" height="144"
alt="Author" alt="{{ $.Site.Author.name | default "Author" }}"
src="{{ $authorImage.RelPermalink }}" src="{{ $authorImage.RelPermalink }}"
/> />
{{ end }} {{ end }}