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

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

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