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 }}
|
||||||
|
@ -17,4 +17,4 @@
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
<a href="{{ .Permalink }}" class="c-article__btn p-list-article__btn">Read more</a></li>
|
<a href="{{ .Permalink }}" class="c-article__btn p-list-article__btn">Read more</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
Loading…
Reference in New Issue