almost change all layouts to ssr
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user