From 34d2c4733df8a637e5f6cc0bc51e1d86976de081 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 31 Jan 2022 18:23:04 +0530 Subject: [PATCH] fix: prefer `repo` above `docsRepo` for the navbar repo link --- src/client/theme-default/composables/repo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/theme-default/composables/repo.ts b/src/client/theme-default/composables/repo.ts index 5bb2112b..80ca12cb 100644 --- a/src/client/theme-default/composables/repo.ts +++ b/src/client/theme-default/composables/repo.ts @@ -12,7 +12,7 @@ export function useRepo() { return computed(() => { const theme = site.value.themeConfig as DefaultTheme.Config - const name = theme.docsRepo || theme.repo + const name = theme.repo || theme.docsRepo if (!name) { return null