Новые изменения в компоенты

This commit is contained in:
Web-serfer 2026-04-29 03:54:03 +05:00
parent 1838fd302d
commit 0c6c8fe4d8
7 changed files with 24 additions and 8 deletions

View file

@ -66,6 +66,7 @@ const heroImage = getPostImageUrl(post);
heroImage={heroImage}
heroAlt={post.title}
category={post.category}
categoryColor={post.categoryColor}
postTitle={post.title}
date={formatDate(post.date)}
author={post.author}

View file

@ -21,6 +21,8 @@ const formatDate = (date: string) => {
const year = new Date().getFullYear().toString().slice(-2);
return `${day}/${month}/${year}`;
};
const postsCountText = String(total);
---
<Layout
@ -41,7 +43,7 @@ const formatDate = (date: string) => {
sideImage="/images/blog/blogImg.avif"
sideImageAlt="Автоюрист Сургут"
experienceBadge={{
number: "50+",
number: postsCountText,
text: "ПОЛЕЗНЫХ СТАТЕЙ"
}}
bgImage="/images/blog/blogBg.avif"