Remade the title block to be multi-purpose and added the facebook widget

This commit was merged in pull request #15.
This commit is contained in:
2023-09-19 17:13:02 +02:00
parent d1b2073717
commit 6be84ae480
15 changed files with 783 additions and 160 deletions

View File

@@ -17,11 +17,6 @@ export const Content: PageBlockFunction<PageBlocksContent> = ({ data }) => {
size="custom"
width="large"
>
{ data.withTitle ?
<div className={ "main-title" }
data-tina-field={ tinaField(data, "title") }>
{ data.title }
</div> : null }
<TinaMarkdown components={ inlineComponents } content={ data.body } />
</Container>
</Section>
@@ -39,17 +34,6 @@ export const contentBlockSchema: Template = {
},
fields: [
{
type: "boolean",
label: "With Title",
name: "withTitle"
},
{
type: "string",
label: "Title",
name: "title"
},
{
type: "rich-text",
label: "Body",
name: "body",