Refactor blog components for improved tag filtering and related content display

- Added `getBlogTagFacets` API call to fetch blog tags based on city scope.
- Updated `BlogsPage` to read selected tag from URL and handle tag changes with URL updates.
- Modified `Title` component to display tags from the new API and reflect active tag state.
- Enhanced breadcrumb navigation to link categories to their respective pages.
- Adjusted related content section to display articles from the same category and fixed layout issues.
- Corrected heading hierarchy across various components for better SEO compliance.
- Ensured consistent styling and spacing in related content items.
This commit is contained in:
hamed
2026-07-29 14:23:37 +03:30
parent 533449c504
commit eb83762016
13 changed files with 714 additions and 65 deletions
+9
View File
@@ -131,6 +131,15 @@ export const request = {
Authorization: "",
},
}),
// واژگان تگ‌های مقالات منتشرشده + تعداد هرکدام. با getBlogTags یکی نیست: آن
// واژگانِ Tag entity است و به مقاله‌ها وصل نیست.
getBlogTagFacets: (params) =>
api.get("api/v1/blogs/tags", {
params,
headers: {
Authorization: "",
},
}),
getBlogTags: (params) =>
api.get("api/v1/tags", {
params,