feat: Improve image rendering, add more branding and SEO

This commit is contained in:
Jesse Wierzbinski 2024-10-19 23:33:46 +02:00
parent 3a0d5822fd
commit d05288ae68
No known key found for this signature in database
15 changed files with 90 additions and 16 deletions

View file

@ -2,6 +2,8 @@ export interface FrontMatter {
title: string;
description: string;
image: string;
image_width?: number;
image_height?: number;
created_at: string;
private?: string;
author: string;
@ -12,7 +14,11 @@ export interface FrontMatter {
export interface Post {
title: string;
description: string;
image: string;
image: {
url: string;
width?: number;
height?: number;
};
banner?: string;
author: Author;
private: boolean;

16
types/schemas.ts Normal file
View file

@ -0,0 +1,16 @@
import { defineImage, defineOrganization } from "#imports";
export const logo = defineImage({
"@id": "https://versia.pub/#logo",
url: "https://cdn.versia.pub/branding/png/icon.png",
width: 1024,
height: 1024,
caption: "A couple of white stars on a pink rounded square.",
});
export const org = defineOrganization({
name: "Versia",
logo: logo["@id"],
url: "https://versia.pub",
sameAs: [],
});