almost change all layouts to ssr

This commit is contained in:
Ehsan
2025-05-11 15:16:51 +03:30
parent b3bdf6c332
commit 1b2f579d0d
20 changed files with 121 additions and 124 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import BlogPage from "@/components/blog";
import Layout from "@/components/layout";
import articles from "@/data/articles.json";
import Layout from "@/components/layout/StLayout";
function Blog({ params: { slug } }) {
const article = articles.find((item) => item.id === +slug);
return (
<Layout title="وبلاگ" name="blog">
<Layout>
<BlogPage article={article} articles={articles} />
</Layout>
);