show first 60 chars

This commit is contained in:
Georgi Gardev
2023-11-20 11:49:59 +02:00
parent 49b4ef2ca4
commit fb649c3f0c

View File

@@ -118,8 +118,8 @@ export default function Home() {
</div>
<div class={style.CurrentBackground}>
<strong>
{currentBackground()?.description?.slice(60) ||
currentBackground()?.alt_description?.slice(60) ||
{currentBackground()?.description?.slice(0, 60) ||
currentBackground()?.alt_description?.slice(0, 60) ||
'Unnamed'}
</strong>
<br />