From 354c34b7bcf21e7e57c8e1d1f2b2a9d921466382 Mon Sep 17 00:00:00 2001 From: isaaclombardssw Date: Thu, 7 Nov 2024 12:22:55 +1100 Subject: [PATCH] re-adding openGraph stuff --- pages/docs/[...slug].tsx | 5 +++++ tina/customTinaFormFields/textInputWithCount.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/docs/[...slug].tsx b/pages/docs/[...slug].tsx index 7cdbfbd82..143f9249b 100644 --- a/pages/docs/[...slug].tsx +++ b/pages/docs/[...slug].tsx @@ -80,6 +80,11 @@ function _DocTemplate(props) { title={title} titleTemplate={'%s | TinaCMS Docs'} description={description} + openGraph={{ + title: title, + description: description, + images: [openGraphImage(doc_data.title, '| TinaCMS Docs')], + }} /> diff --git a/tina/customTinaFormFields/textInputWithCount.tsx b/tina/customTinaFormFields/textInputWithCount.tsx index cb305145e..63acee54e 100644 --- a/tina/customTinaFormFields/textInputWithCount.tsx +++ b/tina/customTinaFormFields/textInputWithCount.tsx @@ -1,4 +1,4 @@ -//ripped our from SSW's Website 😳 +//ripped out from SSW's Website 😳 import React from "react"; import { wrapFieldsWithMeta } from "tinacms";