Add <a> tag to image
This commit is contained in:
parent
8287d6c190
commit
817a5dcfda
|
@ -8,8 +8,8 @@
|
|||
</time>
|
||||
</p>
|
||||
</header>
|
||||
{{ with .Params.image }}
|
||||
<img src="{{ . }}" alt="thumbnail" class="c-article__thumbnail">
|
||||
{{ if .Params.image }}
|
||||
<a href="{{ .Permalink }}"><img src="{{ .Params.image }}" alt="thumbnail" class="c-article__thumbnail"></a>
|
||||
{{ end }}
|
||||
<div class="c-article__summary">
|
||||
{{ .Summary | plainify | safeHTML }}
|
||||
|
@ -17,4 +17,4 @@
|
|||
{{ if .Truncated }}
|
||||
<a href="{{ .Permalink }}" class="c-article__btn p-list-article__btn">Read more</a></li>
|
||||
{{ end }}
|
||||
</article>
|
||||
</article>
|
Loading…
Reference in New Issue