Skip to content

Commit

Permalink
fix: remove site title from OG image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
colmugx committed Sep 9, 2024
1 parent 77ad1d8 commit aa20338
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/util/genOGImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import type { Font, FontWeight } from 'satori'
import satori from 'satori'

interface OGImageProps {
siteTitle: string
title: string
color: string
author?: string
}

const cache: { [key: string]: any } = {}

function OGImage({ siteTitle, title, color, author }: OGImageProps) {
function OGImage({ title, color, author }: OGImageProps) {
return (
<div
style={{
Expand Down Expand Up @@ -51,16 +50,6 @@ function OGImage({ siteTitle, title, color, author }: OGImageProps) {
}}
>
<div style={{ display: 'flex', flexDirection: 'column', padding: 64 }}>
<p
style={{
fontSize: 24,
fontWeight: 'bold',
color: '#999',
letterSpacing: -2,
}}
>
{siteTitle.toUpperCase()}
</p>
<p
style={{
lineHeight: 1,
Expand Down

0 comments on commit aa20338

Please sign in to comment.