slug调整 兼容commerce主题

This commit is contained in:
tangly1024.com
2024-05-08 15:22:01 +08:00
parent b1b38bcde8
commit 7db60ffa10
8 changed files with 179 additions and 77 deletions

View File

@@ -14,19 +14,19 @@ const MenuGroupCard = props => {
const links = [
{
name: locale.COMMON.ARTICLE,
to: '/archive',
href: '/archive',
slot: archiveSlot,
show: CONFIG.MENU_ARCHIVE
},
{
name: locale.COMMON.CATEGORY,
to: '/category',
href: '/category',
slot: categorySlot,
show: CONFIG.MENU_CATEGORY
},
{
name: locale.COMMON.TAGS,
to: '/tag',
href: '/tag',
slot: tagSlot,
show: CONFIG.MENU_TAG
}
@@ -46,9 +46,9 @@ const MenuGroupCard = props => {
if (link.show) {
return (
<Link
key={`${link.to}`}
title={link.to}
href={link.to}
key={`${link.slug}`}
title={link.name}
href={link.href}
target={link?.target}
className={
'py-1.5 my-1 px-2 duration-300 text-base justify-center items-center cursor-pointer'