mirror of
https://github.com/fmhy/edit.git
synced 2025-07-29 23:32:17 +10:00
[skip-ci] chore: format
This commit is contained in:
parent
7d8ea01dc0
commit
586b45ffa6
3 changed files with 15 additions and 6 deletions
|
@ -11,8 +11,9 @@ export const meta = {
|
|||
|
||||
export const commitRef =
|
||||
process.env.CF_PAGES && process.env.CF_PAGES_COMMIT_SHA
|
||||
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${process.env.CF_PAGES_COMMIT_SHA
|
||||
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
||||
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${
|
||||
process.env.CF_PAGES_COMMIT_SHA
|
||||
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
||||
: 'dev'
|
||||
|
||||
export const feedback = `<a href="/feedback" class="feedback-footer">Made with ❤</a>`
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -10,7 +10,9 @@ defineProps<{
|
|||
<template>
|
||||
<div class="rounded-lg border bg-bg-elv text-text shadow-sm w-full max-w-md">
|
||||
<div class="flex flex-col space-y-1.5 p-6 pb-4">
|
||||
<h4 class="whitespace-nowrap text-2xl font-semibold leading-none tracking-tight">
|
||||
<h4
|
||||
class="whitespace-nowrap text-2xl font-semibold leading-none tracking-tight"
|
||||
>
|
||||
{{ title }}
|
||||
</h4>
|
||||
<p class="text-sm text-text-2 font-medium leading-none tracking-tight">
|
||||
|
@ -18,7 +20,13 @@ defineProps<{
|
|||
</p>
|
||||
</div>
|
||||
<div class="p-6">
|
||||
<img :src="desktop" :alt="title" class="rounded-md object-cover aspect-[3/2]" width="1080" height="1920" />
|
||||
<img
|
||||
:src="desktop"
|
||||
:alt="title"
|
||||
class="rounded-md object-cover aspect-[3/2]"
|
||||
width="1080"
|
||||
height="1920"
|
||||
/>
|
||||
</div>
|
||||
<div class="items-center p-6 flex gap-2">
|
||||
<a :href="mobile" target="_blank">Mobile</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue