Basic styling for thumbnails in feed non-article posts

This commit is contained in:
shockrah 2023-10-08 17:18:34 -07:00
parent 6cbaaf4ac7
commit ddf62bb277
2 changed files with 6 additions and 2 deletions

View File

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

View File

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