Skip to content

Commit c48cebe

Browse files
committed
fix: support title links configuration
1 parent 29d46f9 commit c48cebe

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

app/pages/[...slug].vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ useHead({
5959
:links="page.links"
6060
>
6161
<template #description>
62+
<div class="flex items-center gap-4 mb-4" v-if="page.avatar">
63+
<img
64+
:src="page.avatar.src"
65+
:alt="page.avatar.alt"
66+
class="w-12 h-12 rounded-full object-cover"
67+
/>
68+
</div>
6269
<img
6370
v-if="page.banner"
6471
:src="page.banner"

content.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ const schema = z.object({
88
title: z.string().optional()
99
}),
1010
banner: z.string().optional(),
11+
avatar: z.object({
12+
src: z.string(),
13+
alt: z.string()
14+
}).optional(),
1115
links: z.array(z.object({
1216
label: z.string(),
1317
icon: z.string(),

content/home/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ links:
77
to: https://pypi.org/project/MemoryOS/
88
target: _blank
99
avatar:
10-
src: https:/statics.memtensor.com.cn/icon/pypi.svg
10+
src: https://statics.memtensor.com.cn/icon/pypi.svg
1111
alt: PyPI logo
1212
- label: 'Open Source'
1313
to: https://github.com/MemTensor/MemOS

0 commit comments

Comments
 (0)