mirror of
https://github.com/fmhy/edit.git
synced 2025-07-30 07:42:18 +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 =
|
export const commitRef =
|
||||||
process.env.CF_PAGES && process.env.CF_PAGES_COMMIT_SHA
|
process.env.CF_PAGES && process.env.CF_PAGES_COMMIT_SHA
|
||||||
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${process.env.CF_PAGES_COMMIT_SHA
|
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${
|
||||||
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
process.env.CF_PAGES_COMMIT_SHA
|
||||||
|
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
||||||
: 'dev'
|
: 'dev'
|
||||||
|
|
||||||
export const feedback = `<a href="/feedback" class="feedback-footer">Made with ❤</a>`
|
export const feedback = `<a href="/feedback" class="feedback-footer">Made with ❤</a>`
|
||||||
|
|
|
@ -71,14 +71,14 @@ async function generateImage({
|
||||||
const _page = getPage(url)
|
const _page = getPage(url)
|
||||||
const title =
|
const title =
|
||||||
frontmatter.layout === 'home'
|
frontmatter.layout === 'home'
|
||||||
? frontmatter.hero.name ?? frontmatter.title
|
? (frontmatter.hero.name ?? frontmatter.title)
|
||||||
: frontmatter.title
|
: frontmatter.title
|
||||||
? frontmatter.title
|
? frontmatter.title
|
||||||
: _page?.title
|
: _page?.title
|
||||||
|
|
||||||
const description =
|
const description =
|
||||||
frontmatter.layout === 'home'
|
frontmatter.layout === 'home'
|
||||||
? frontmatter.hero.tagline ?? frontmatter.description
|
? (frontmatter.hero.tagline ?? frontmatter.description)
|
||||||
: frontmatter.description
|
: frontmatter.description
|
||||||
? frontmatter.description
|
? frontmatter.description
|
||||||
: _page?.description
|
: _page?.description
|
||||||
|
|
|
@ -10,7 +10,9 @@ defineProps<{
|
||||||
<template>
|
<template>
|
||||||
<div class="rounded-lg border bg-bg-elv text-text shadow-sm w-full max-w-md">
|
<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">
|
<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 }}
|
{{ title }}
|
||||||
</h4>
|
</h4>
|
||||||
<p class="text-sm text-text-2 font-medium leading-none tracking-tight">
|
<p class="text-sm text-text-2 font-medium leading-none tracking-tight">
|
||||||
|
@ -18,7 +20,13 @@ defineProps<{
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-6">
|
<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>
|
||||||
<div class="items-center p-6 flex gap-2">
|
<div class="items-center p-6 flex gap-2">
|
||||||
<a :href="mobile" target="_blank">Mobile</a>
|
<a :href="mobile" target="_blank">Mobile</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue