Add alt text to gallery
This commit is contained in:
parent
90e3e37adf
commit
ca6ac17d06
1 changed files with 12 additions and 12 deletions
|
@ -16,9 +16,9 @@
|
|||
<a href="{{ $full.Permalink }}">
|
||||
{{ if $.Params.thumbnails }}
|
||||
{{ $thumb := resources.Get (printf "%s-thumbs/%s" ($.Param "json") .filename) }}
|
||||
<img width="128px" height="128px" src="{{ $thumb.Permalink }}"/>
|
||||
<img alt="{{ .title }}" width="128px" height="128px" src="{{ $thumb.Permalink }}"/>
|
||||
{{ else }}
|
||||
<img src="{{ $full.Permalink }}"/>
|
||||
<img alt="{{ .title }}" src="{{ $full.Permalink }}"/>
|
||||
{{ end }}
|
||||
</a>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue