Fix slugs

This commit is contained in:
alxshelepenok 2018-11-11 23:40:08 +03:00
parent 042caa13f8
commit 5272e4052e
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const CategoriesListTemplate = ({ data }) => {
<ul> <ul>
{group.map((category) => ( {group.map((category) => (
<li key={category.fieldValue}> <li key={category.fieldValue}>
<Link to={`/categories/${kebabCase(category.fieldValue)}/`}> <Link to={`/category/${kebabCase(category.fieldValue)}/`}>
{category.fieldValue} ({category.totalCount}) {category.fieldValue} ({category.totalCount})
</Link> </Link>
</li> </li>

View File

@ -19,7 +19,7 @@ const TagsListTemplate = ({ data }) => {
<ul> <ul>
{group.map((tag) => ( {group.map((tag) => (
<li key={tag.fieldValue}> <li key={tag.fieldValue}>
<Link to={`/tags/${kebabCase(tag.fieldValue)}/`}> <Link to={`/tag/${kebabCase(tag.fieldValue)}/`}>
{tag.fieldValue} ({tag.totalCount}) {tag.fieldValue} ({tag.totalCount})
</Link> </Link>
</li> </li>