mirror of
https://github.com/sergeyyarkov/devthread.ru.git
synced 2026-10-11 10:19:13 +03:00
key
This commit is contained in:
parent
d6e8559122
commit
cb0d8f9072
@ -10,7 +10,7 @@ const Categories = () => {
|
|||||||
<div className="tag-item">
|
<div className="tag-item">
|
||||||
<Link to='/articles'>Все</Link>
|
<Link to='/articles'>Все</Link>
|
||||||
</div>
|
</div>
|
||||||
{edges.map(({ node }) => <div className="tag-item">
|
{edges.map(({ node }, i) => <div key={i} className="tag-item">
|
||||||
<Link to={`/category/${slugify(node.frontmatter.title)}`}>{node.frontmatter.title}</Link>
|
<Link to={`/category/${slugify(node.frontmatter.title)}`}>{node.frontmatter.title}</Link>
|
||||||
</div>)}
|
</div>)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -22,7 +22,7 @@ const CategoryPage = ({ data: { allMarkdownRemark: edges } }) => {
|
|||||||
<Categories />
|
<Categories />
|
||||||
<div className="articles-search">
|
<div className="articles-search">
|
||||||
<input placeholder="Напишите сюда чтобы отфильтровать статьи" type="text" />
|
<input placeholder="Напишите сюда чтобы отфильтровать статьи" type="text" />
|
||||||
<span>278</span>
|
<span>{edges.edges.length}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user