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 }}
|
||||
|
|
Loading…
Reference in New Issue