mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: move theme toggle and GitHub button to top-right navbar
Remove socialLinks config and three-dots menu. Add appearance toggle and combined GitHub + Star button directly in the navbar via layout slot. The button shows the Octocat icon, "Star" label, and live stargazer count.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import DefaultTheme from "vitepress/theme";
|
||||
import VPSwitchAppearance from "vitepress/dist/client/theme-default/components/VPSwitchAppearance.vue";
|
||||
import GitHubStars from "./GitHubStars.vue";
|
||||
|
||||
const { Layout } = DefaultTheme;
|
||||
@@ -8,7 +9,10 @@ const { Layout } = DefaultTheme;
|
||||
<template>
|
||||
<Layout>
|
||||
<template #nav-bar-content-after>
|
||||
<GitHubStars />
|
||||
<div class="nav-bar-right">
|
||||
<VPSwitchAppearance />
|
||||
<GitHubStars />
|
||||
</div>
|
||||
</template>
|
||||
</Layout>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user