diff --git a/app/routes/a.$slug.tsx b/app/routes/a.$slug.tsx index 1a2488ff8..7dbc825ef 100644 --- a/app/routes/a.$slug.tsx +++ b/app/routes/a.$slug.tsx @@ -20,10 +20,13 @@ export const meta: MetaFunction = (args) => { return { title: makeTitle(data.title), + "og:title": data.title, description, "og:description": description, "twitter:card": "summary_large_image", "og:image": articlePreviewUrl(args.params["slug"]), + "og:type": "article", + "og:site_name": "sendou.ink", }; }; diff --git a/app/utils/markdown.server.ts b/app/utils/markdown.server.ts index 1363a1c1e..a0639e9bc 100644 --- a/app/utils/markdown.server.ts +++ b/app/utils/markdown.server.ts @@ -17,6 +17,7 @@ export function articleBySlug(slug: string) { return { content, + date, dateString: date.toLocaleDateString("en-US", { day: "2-digit", month: "long", diff --git a/public/img/article-previews/splatfest-world-premiere.png b/public/img/article-previews/splatfest-world-premiere.png index 0d99bba73..bd0bf5ed3 100644 Binary files a/public/img/article-previews/splatfest-world-premiere.png and b/public/img/article-previews/splatfest-world-premiere.png differ