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