1
Fork 0

Blank alt text for post images

These aren't strictly required for screen reading
This commit is contained in:
Jake Howard 2021-12-27 10:41:59 +00:00
parent f026a4b21b
commit 92ea26dd20
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
{{ .Scratch.Set "image" $unsplash_data.urls.full }} {{ .Scratch.Set "image" $unsplash_data.urls.full }}
{{ end }} {{ end }}
<img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' /> <img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' alt="" />
{{ end }} {{ end }}
{{ partial "breadcrumbs/index.html" . }} {{ partial "breadcrumbs/index.html" . }}

View file

@ -12,7 +12,7 @@
{{ $unsplash_data := (getJSON "https://api.unsplash.com/photos/" $unsplash_id "?" $query )}} {{ $unsplash_data := (getJSON "https://api.unsplash.com/photos/" $unsplash_id "?" $query )}}
{{ .Scratch.Set "image" $unsplash_data.urls.thumb }} {{ .Scratch.Set "image" $unsplash_data.urls.thumb }}
{{ end }} {{ end }}
<img src='{{ .Scratch.Get "image" }}' decoding="async" loading="lazy" referrerpolicy="no-referrer" /> <img src='{{ .Scratch.Get "image" }}' decoding="async" loading="lazy" referrerpolicy="no-referrer" alt="" />
</a> </a>
</div> </div>
{{ end }} {{ end }}