Add images to front page.

This commit is contained in:
Dominik V. Salonen 2018-09-03 15:05:10 +00:00
parent 3baad179de
commit 70f1520624
2 changed files with 7 additions and 0 deletions

View File

@ -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>

View File

@ -266,6 +266,10 @@ img {
margin: 0;
}
.c-article__thumbnail {
margin-bottom: 10px;
}
.c-article__btn {
display: inline-block;
padding-bottom: 4px;