gokarna-theme / gokarna-hugo

A minimal opinionated theme for Hugo
https://gokarna-hugo.netlify.app
GNU General Public License v3.0
358 stars 140 forks source link

Added configurable alt text to the avatar #120

Closed PepperTheVixen closed 2 years ago

PepperTheVixen commented 2 years ago

The img avatar in the header already sets alt to "avatar" for screen readers. In most cases, this is enough, however a user may desire a more descriptive alt text. This makes the attribute configurable by the user to make the theme more accessible for blind users since the avatar can now have a description custom-tailored to the desired image, for example a logo with text or a photo of a person or place. Since the img in header.html and index.html pull from the same source, this parameter is applied to both. If the parameter is not set, the alt text will simply default to "avatar" on both. This change is not visible on-screen and will only affect those using screen-reading software.

netlify[bot] commented 2 years ago

Deploy Preview for gokarna-hugo ready!

Name Link
Latest commit 25aa5b1036101ffb7978bcc231184b6991b4c6ed
Latest deploy log https://app.netlify.com/sites/gokarna-hugo/deploys/62ff36c5146c2c0008a0cee3
Deploy Preview https://deploy-preview-120--gokarna-hugo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

yashmehrotra commented 2 years ago

@PepperTheVixen Thanks for the changes, merging

cc: @526avijitgupta