Skip to content

Commit 3d3cb58

Browse files
iBugmmistakes
andauthored
Add alt attr to site logo in masthead (#2824)
Co-authored-by: Michael Rose <[email protected]>
1 parent 6e4aa38 commit 3d3cb58

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Unreleased
22

3+
### Enhancements
4+
5+
- Add `alt` attribute to site logo. [#2529](https://github.com/mmistakes/minimal-mistakes/issues/2529) [#2824](https://github.com/mmistakes/minimal-mistakes/issues/2824)
6+
37
### Bug Fixes
48

59
- Remove Google Search CSS. [#2852](https://github.com/mmistakes/minimal-mistakes/issues/2852) [#2855](https://github.com/mmistakes/minimal-mistakes/pull/2855)

_includes/masthead.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="masthead__menu">
66
<nav id="site-nav" class="greedy-nav">
77
{% unless logo_path == empty %}
8-
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt=""></a>
8+
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt="{{ site.masthead_title | default: site.title }}"></a>
99
{% endunless %}
1010
<a class="site-title" href="{{ '/' | relative_url }}">
1111
{{ site.masthead_title | default: site.title }}

docs/_docs/18-history.md

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ toc: false
1111

1212
## Unreleased
1313

14+
### Enhancements
15+
16+
- Add `alt` attribute to site logo. [#2529](https://github.com/mmistakes/minimal-mistakes/issues/2529) [#2824](https://github.com/mmistakes/minimal-mistakes/issues/2824)
17+
1418
### Bug Fixes
1519

1620
- Remove Google Search CSS. [#2852](https://github.com/mmistakes/minimal-mistakes/issues/2852) [#2855](https://github.com/mmistakes/minimal-mistakes/pull/2855)

0 commit comments

Comments
 (0)