Basic styling for thumbnails in feed non-article posts
This commit is contained in:
parent
6cbaaf4ac7
commit
ddf62bb277
@ -22,6 +22,11 @@
|
|||||||
<p class="card-text">{{ .Description }}</p>
|
<p class="card-text">{{ .Description }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<p class="card-text">{{ .Content }}</p>
|
<p class="card-text">{{ .Content }}</p>
|
||||||
|
{{ if .Page.Params.Thumbnail }}
|
||||||
|
<a href="{{ .Params.Thumbnail }}">
|
||||||
|
<img class="card-img" src="{{ .Params.Thumbnail }}">
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer text-muted postcard">
|
<div class="card-footer text-muted postcard">
|
||||||
|
@ -162,8 +162,7 @@ a {
|
|||||||
a:hover { color: #EAA221; }
|
a:hover { color: #EAA221; }
|
||||||
|
|
||||||
.card-img {
|
.card-img {
|
||||||
width: auto;
|
width: 450px;
|
||||||
height: 150px;
|
|
||||||
}
|
}
|
||||||
.card {
|
.card {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
Loading…
Reference in New Issue
Block a user