recipe/packages/create/template/blog/config/en/navbar.ts
2024-08-18 19:16:25 +08:00

53 lines
1.2 KiB
TypeScript

import { navbar } from "vuepress-theme-hope";
export default navbar([
"/",
"/demo/",
{
text: "Posts",
icon: "pen-to-square",
prefix: "/posts/",
children: [
{
text: "Apple",
icon: "pen-to-square",
prefix: "apple/",
children: [
{ text: "Apple1", icon: "pen-to-square", link: "1" },
{ text: "Apple2", icon: "pen-to-square", link: "2" },
"3",
"4",
],
},
{
text: "Banana",
icon: "pen-to-square",
prefix: "banana/",
children: [
{
text: "Banana 1",
icon: "pen-to-square",
link: "1",
},
{
text: "Banana 2",
icon: "pen-to-square",
link: "2",
},
"3",
"4",
],
},
{ text: "Cherry", icon: "pen-to-square", link: "cherry" },
{ text: "Dragon Fruit", icon: "pen-to-square", link: "dragonfruit" },
"tomato",
"strawberry",
],
},
{
text: "V2 Docs",
icon: "book",
link: "https://theme-hope.vuejs.press/",
},
]);