change data articles and create head and detail page item blog
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
import BlogPage from '@/components/blog';
|
||||
import Layout from '@/components/layout';
|
||||
import articles from '@/data/articles.json';
|
||||
|
||||
function Blog({ params: { slug } }) {
|
||||
|
||||
const article = articles.find(item => item.id === +slug);
|
||||
|
||||
function Blog() {
|
||||
return (
|
||||
<Layout title='وبلاگ' name='blog'>
|
||||
<BlogPage />
|
||||
<BlogPage
|
||||
article={article}
|
||||
/>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user