+
+
+
diff --git a/components/layout/HeaderLogo.vue b/components/layout/HeaderLogo.vue
new file mode 100644
index 00000000..2ab4ab72
--- /dev/null
+++ b/components/layout/HeaderLogo.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
diff --git a/components/layout/MobileNav.vue b/components/layout/MobileNav.vue
index c70b8f79..712233aa 100644
--- a/components/layout/MobileNav.vue
+++ b/components/layout/MobileNav.vue
@@ -6,10 +6,11 @@
size="icon"
class="md:hidden"
>
-
+
+
diff --git a/components/layout/Toc.vue b/components/layout/Toc.vue
index 3391a713..16f98525 100644
--- a/components/layout/Toc.vue
+++ b/components/layout/Toc.vue
@@ -7,7 +7,7 @@
type="hover"
>
- On This Page
+ {{ title }}
@@ -35,5 +35,6 @@
defineProps<{ isSmall: boolean }>();
const { toc } = useContent();
+const { title } = useConfig().value.toc;
const isOpen = ref(false);
diff --git a/composables/useConfig.ts b/composables/useConfig.ts
new file mode 100644
index 00000000..6e10ecfd
--- /dev/null
+++ b/composables/useConfig.ts
@@ -0,0 +1,40 @@
+export function useConfig() {
+ const appConfig = computed(() => useAppConfig()?.shadcnDocs || {});
+
+ const { navKeyFromPath } = useContentHelpers();
+ const { navigation, page } = useContent();
+ const route = useRoute();
+
+ return computed(
+ () => {
+ const header = appConfig?.value?.header || {};
+ const main = appConfig?.value?.main || {};
+ const aside = appConfig?.value?.aside || {};
+ const footer = appConfig?.value?.footer || {};
+
+ return {
+ ...appConfig.value,
+ header: {
+ ...header,
+ ...navKeyFromPath(route.path, 'header', navigation.value || []),
+ ...page.value?.header,
+ } as typeof header,
+ main: {
+ ...main,
+ ...navKeyFromPath(route.path, 'main', navigation.value || []),
+ ...page.value?.main,
+ } as typeof main,
+ aside: {
+ ...aside,
+ ...navKeyFromPath(route.path, 'aside', navigation.value || []),
+ ...page.value?.aside,
+ } as typeof aside,
+ footer: {
+ ...footer,
+ ...navKeyFromPath(route.path, 'footer', navigation.value || []),
+ ...page.value?.footer,
+ } as typeof footer,
+ };
+ },
+ );
+}
diff --git a/pages/[...slug].vue b/pages/[...slug].vue
index 3b69d870..1e46f8a1 100644
--- a/pages/[...slug].vue
+++ b/pages/[...slug].vue
@@ -5,11 +5,11 @@
-
+
-
+
-
+
{{ page?.title }}
@@ -35,7 +35,7 @@
-
+
@@ -48,4 +48,5 @@
diff --git a/public/favicon.ico b/public/favicon.ico
index 18993ad9..30af0cba 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/logo-dark.svg b/public/logo-dark.svg
new file mode 100644
index 00000000..76bc7978
--- /dev/null
+++ b/public/logo-dark.svg
@@ -0,0 +1,17 @@
+
diff --git a/public/logo.svg b/public/logo.svg
new file mode 100644
index 00000000..3b89fbe5
--- /dev/null
+++ b/public/logo.svg
@@ -0,0 +1,17 @@
+