FIX display problem with cards

This commit is contained in:
Hoernschen 2022-07-25 10:19:53 +02:00
parent c82a99f16a
commit 25ffefe77c
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
4 changed files with 4 additions and 4 deletions

View file

@ -419,7 +419,7 @@ button {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
max-width: 350px; max-width: 350px;
height: 400px; height: 400px;
margin: auto; margin: 1rem auto;
justify-content: center; justify-content: center;
} }

View file

@ -18,7 +18,7 @@
<img class="cardImage" src="{{ .Site.Params.defaultimage }}" alt="Default Image" /> <img class="cardImage" src="{{ .Site.Params.defaultimage }}" alt="Default Image" />
{{ end }} {{ end }}
<div class="cardTitle">{{.Title}}</div> <div class="cardTitle">{{.Title}}</div>
<div class="cardDescription">{{ .Content | safeHTML | truncate 250 }}</div> <div class="cardDescription">{{ .Summary | safeHTML | truncate 320 }}</div>
<div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div> <div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div>
</div> </div>
</a> </a>

View file

@ -25,7 +25,7 @@
<img class="cardImage" src="{{ $defaultimage }}" alt="Defaul Image" /> <img class="cardImage" src="{{ $defaultimage }}" alt="Defaul Image" />
{{ end }} {{ end }}
<div class="cardTitle">{{.Title}}</div> <div class="cardTitle">{{.Title}}</div>
<div class="cardDescription">{{ .Content | safeHTML | truncate 250 }}</div> <div class="cardDescription">{{ .Summary | safeHTML | truncate 320 }}</div>
<div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div> <div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div>
</div> </div>
</a> </a>

View file

@ -20,7 +20,7 @@
<img class="cardImage" src="{{ .Site.Params.defaultimage }}" alt="Default Image" /> <img class="cardImage" src="{{ .Site.Params.defaultimage }}" alt="Default Image" />
{{ end }} {{ end }}
<div class="cardTitle">{{.Title}}</div> <div class="cardTitle">{{.Title}}</div>
<div class="cardDescription">{{ .Content | safeHTML | truncate 250 }}</div> <div class="cardDescription">{{ .Summary | safeHTML | truncate 320 }}</div>
<div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div> <div class="cardDetail">{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten</div>
</div> </div>
</a> </a>