Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
LincZero authored Dec 6, 2024
2 parents 8192c64 + 1dfba36 commit 26c5852
Show file tree
Hide file tree
Showing 3 changed files with 497 additions and 365 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@nolebase/integrations",
"type": "module",
"version": "2.11.1",
"packageManager": "[email protected].2",
"packageManager": "[email protected].4",
"description": "A collection of diverse documentation engineering tools.",
"author": {
"name": "Nólëbase",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
import { useData } from 'vitepress'
const { frontmatter } = useData()
const breadcrumbs = (frontmatter.value.breadcrumbs ?? []) as {
title: string
link: string
}[]
</script>

<template>
<div class="vp-nolebase-breadcrumbs">
<span v-for="item in frontmatter.breadcrumbs" :key="item">
<span v-for="item in breadcrumbs" :key="item.link">
<a v-if="item.link" :href="item.link">{{ item.title }}</a>
<span v-else>{{ item.title }}</span>
</span>
Expand All @@ -15,8 +20,6 @@ const { frontmatter } = useData()

<style scoped>
.vp-nolebase-breadcrumbs {
display: flex;
gap: 8px;
font-size: 14px;
margin-bottom: 2rem;
}
Expand All @@ -39,8 +42,9 @@ const { frontmatter } = useData()
}
.vp-nolebase-breadcrumbs span:not(:first-child)::before {
content: '/';
padding-right: 8px;
content: "/";
padding-left: 4px;
padding-right: 4px;
color: var(--vp-c-text-3);
}
</style>
Loading

0 comments on commit 26c5852

Please sign in to comment.