From 586b45ffa6e8dc0fdb20e31f5d87fadc13689650 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Thu, 8 Aug 2024 15:08:55 +0000 Subject: [PATCH] [skip-ci] chore: format --- docs/.vitepress/constants.ts | 5 +++-- docs/.vitepress/hooks/opengraph.ts | 4 ++-- docs/.vitepress/theme/components/WallpaperCard.vue | 12 ++++++++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/.vitepress/constants.ts b/docs/.vitepress/constants.ts index 7029c71a5..a3c6d9255 100644 --- a/docs/.vitepress/constants.ts +++ b/docs/.vitepress/constants.ts @@ -11,8 +11,9 @@ export const meta = { export const commitRef = process.env.CF_PAGES && process.env.CF_PAGES_COMMIT_SHA - ? `${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}` + ? `${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}` : 'dev' export const feedback = `Made with ❤` diff --git a/docs/.vitepress/hooks/opengraph.ts b/docs/.vitepress/hooks/opengraph.ts index f86e52902..2399ab538 100644 --- a/docs/.vitepress/hooks/opengraph.ts +++ b/docs/.vitepress/hooks/opengraph.ts @@ -71,14 +71,14 @@ async function generateImage({ const _page = getPage(url) const title = frontmatter.layout === 'home' - ? frontmatter.hero.name ?? frontmatter.title + ? (frontmatter.hero.name ?? frontmatter.title) : frontmatter.title ? frontmatter.title : _page?.title const description = frontmatter.layout === 'home' - ? frontmatter.hero.tagline ?? frontmatter.description + ? (frontmatter.hero.tagline ?? frontmatter.description) : frontmatter.description ? frontmatter.description : _page?.description diff --git a/docs/.vitepress/theme/components/WallpaperCard.vue b/docs/.vitepress/theme/components/WallpaperCard.vue index 29d6f62c5..5f028f19c 100644 --- a/docs/.vitepress/theme/components/WallpaperCard.vue +++ b/docs/.vitepress/theme/components/WallpaperCard.vue @@ -10,7 +10,9 @@ defineProps<{