mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +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">
|
||||
{{ 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 }}
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue