Add images to front page.
This commit is contained in:
parent
3baad179de
commit
70f1520624
|
@ -8,6 +8,9 @@
|
|||
</time>
|
||||
</p>
|
||||
</header>
|
||||
{{ with .Params.image }}
|
||||
<img src="{{ . }}" alt="thumbnail" class="c-article__thumbnail">
|
||||
{{ end }}
|
||||
<div class="c-article__summary">
|
||||
{{ .Summary | plainify | safeHTML }}
|
||||
</div>
|
||||
|
|
|
@ -266,6 +266,10 @@ img {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.c-article__thumbnail {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.c-article__btn {
|
||||
display: inline-block;
|
||||
padding-bottom: 4px;
|
||||
|
|
Loading…
Reference in New Issue