mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-23 07:02:53 +00:00
Add missing alt tags
This commit is contained in:
parent
5fcba47801
commit
2b1d2c3e8e
3 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
||||||
<div class="container markdown {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad">
|
<div class="container markdown {{ if .Site.Params.fadeIn }} fade-in two {{ end }} top-pad">
|
||||||
{{ if .Params.image }}
|
{{ if .Params.image }}
|
||||||
<div class="has-text-centered">
|
<div class="has-text-centered">
|
||||||
<img src="{{ .Params.image | relURL }}" class="img-responsive">
|
<img src="{{ .Params.image | relURL }}" class="img-responsive" alt="{{ .Title }}">
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="card-image">
|
<div class="card-image">
|
||||||
<figure class="image is-3by2">
|
<figure class="image is-3by2">
|
||||||
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
|
<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>
|
</a>
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Params.image }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
<section class="modal-card-body markdown">
|
<section class="modal-card-body markdown">
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<div class="card-image">
|
<div class="card-image">
|
||||||
<figure class="image is-3by2">
|
<figure class="image is-3by2">
|
||||||
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{.Permalink}}{{ end }}">
|
<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>
|
</a>
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue