Add missing alt tags

This commit is contained in:
Hanzei 2018-06-28 19:04:40 +02:00
parent 5fcba47801
commit 2b1d2c3e8e
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0
3 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@
<div class="container markdown {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad">
{{ if .Params.image }}
<div class="has-text-centered">
<img src="{{ .Params.image | relURL }}" class="img-responsive">
<img src="{{ .Params.image | relURL }}" class="img-responsive" alt="{{ .Title }}">
</div>
{{ end }}
{{ .Content }}

View file

@ -19,7 +19,7 @@
<div class="card-image">
<figure class="image is-3by2">
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
<img src="{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ (.Site.Params.placeHolderimg | default "/img/workday.jpg") | relURL }}{{ end }}">
<img src="{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ (.Site.Params.placeHolderimg | default "/img/workday.jpg") | relURL }}{{ end }}" alt="{{ .Title }}">
</a>
</figure>
</div>
@ -51,7 +51,7 @@
</header>
{{ end }}
{{ if .Params.image }}
<img src="{{ .Params.image | relURL }}" class="img-responsive img-centered">
<img src="{{ .Params.image | relURL }}" alt="{{ .Title }}" class="img-responsive img-centered">
{{ end }}
{{ if .Content }}
<section class="modal-card-body markdown">

View file

@ -27,7 +27,7 @@
<div class="card-image">
<figure class="image is-3by2">
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{.Permalink}}{{ end }}">
<img src="{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ (.Site.Params.placeHolderimg | default "/img/workday.jpg") | relURL }}{{ end }}">
<img src="{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ (.Site.Params.placeHolderimg | default "/img/workday.jpg") | relURL }}{{ end }}" alt="{{ .Title }}">
</a>
</figure>
</div>