Skip to content

Commit b15c318

Browse files
committed
chore: code cleanup
1 parent 13d93fa commit b15c318

File tree

5 files changed

+62
-8
lines changed

5 files changed

+62
-8
lines changed

TODO.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
## Site Finalization
44

55
- [ ] Figure out legal policies
6-
- [ ] Logo needs fixed (replace text with svg to fix it)
7-
- [ ] Seo for entire site
8-
- [ ] Expand ftp script to push data,images,videos separately
96

107
## Rebrand
118

app/components/app/Logo.vue

Lines changed: 51 additions & 1 deletion
Large diffs are not rendered by default.

app/pages/blog/index.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ useSeoMeta({
1414
ogDescription: description
1515
})
1616
17-
// TODO: Figure out OgImage component usage in static builds
18-
// if (import.meta.client) defineOgImageComponent('myOgImage')
17+
if (page.value?.seo.image) {
18+
defineOgImage({
19+
url: page.value.seo.image as string
20+
})
21+
}
1922
</script>
2023

2124
<template>

content.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ const collections = {
158158
blog: defineCollection({
159159
type: 'page',
160160
source: '4.blog.yml',
161-
schema: z.object({})
161+
schema: createBaseSchema().extend({
162+
image: createImageSchema().optional()
163+
})
162164
}),
163165
posts: defineCollection({
164166
type: 'page',

content/4.blog.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
navigation.icon: i-lucide-newspaper
12
icon: i-lucide-newspaper
23
title: Blog
34
description: Latest articles and updates
4-
navigation.icon: i-lucide-newspaper
5+
seo:
6+
# image: /images/blog/seo-image.jpg

0 commit comments

Comments
 (0)