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