mirror of
https://github.com/versia-pub/blog.git
synced 2026-03-13 01:29:15 +01:00
feat: ✨ Improve image rendering, add more branding and SEO
This commit is contained in:
parent
3a0d5822fd
commit
d05288ae68
15 changed files with 90 additions and 16 deletions
|
|
@ -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
16
types/schemas.ts
Normal 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: [],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue